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