css 属性对照表 CSS 背景属性 属性 描述 值 IE F N W3C background 简写属性,作用是将背景属性设置在一个声明中。 background-color background-image background-repeat background-attachment background-position 4 1 6 1 background-attachment 背景图像是否固定或者随着页面的其余部分滚动。 scroll fixed 4 1 6 1 background-color 设置元素的背景颜色。 color-rgb color-hex color-name transparent 4 1 4 1 background-image 把图像设置为背景。 url none 4 1 4 1 background-position 设置背景图像的起始位置。 top left top center top right center left center center center right bottom left bottom center bottom right x-% y-% x-pos y-pos 4 1 6 1 background-repeat 设置背景图像是否及如何重复。 repeat repeat-x repeat-y no-repeat 4 1 4 1 CSS 边框属性 (border) 属性 描述 值 IE F N W3C border 简写属性。作用是在一个声明中用来设置四个边框的所有属性。 border-width border-style border-color 4 1 4 1 border-bottom 简写属性。作用是在一个声明中用来设置下边框的所有属性。 border-bottom-width border-style border-color 4 1 6 1 border-bottom-color 设置下边框的颜色。 border-color 4 1 6 2 border-bottom-style 设置下边框的样式。 border-style 4 1 6 2 border-bottom-width 设置下边框的宽度。 thin medium thick length 4 1 4 1 border-color 设置四个边框的颜色,可以设置一到四个颜色。 color 4 1 6 1 border-left 简写属性。用于在一个声明中设置左边框的所有属性。 border-left-width border-style border-color 4 1 6 1 border-left-color 设置左边框的颜色。 border-color 4 1 6 2 border-left-style 设置左边框的样式。 border-style 4 1 6 2 border-left-width 设置左边框的宽度。 thin medium thick length 4 1 4 1 border-right 简写属性。将所有用于右边框的属性设置于一个声明中。 border-right-widt...