CSS的4个简写
1.background 簡寫屬性在一個聲明中設置所有的背景屬性:
- background-color
- background-image
- background-repeat
- background-attachment
- background-position
2.border 簡寫屬性在一個聲明設置所有的邊框屬性:
- border-width
- border-style
- border-color
例如:
border:1px solid red;3.font 簡寫屬性在一個聲明中設置所有字體屬性:
- font-style
- font-variant
- font-weight
- font-size/line-height
- font-family
例如:
font:italic bold 12px/20px arial,sans-serif;4.list-style 簡寫屬性在一個聲明中設置所有的列表屬性:
- list-style-type
- list-style-position
- list-style-image
例如:
list-style:square inside url('/images/images.gif'); 這次的主要內容是鞏固一下自己以前的CSS2最優寫法,20號以前再把關于 Webkit 內核瀏覽器支持CSS3的一些特性總結一下.
總結
- 上一篇: red hat 5 和 oracle
- 下一篇: CSS小总结