-
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://forest.blogbus.com/logs/5407535.html
整理了一下自己写CSS时的顺序,跟大家分享下。
下表顺序为从上到下,从左到右:
============================
display || visibility
list-style : list-style-type || list-style-position || list-style-image
position
top || right || bottom || left
z-index
clear
float
width
max-width || min-width
height
max-height || min-height
overflow || clip
margin : margin-top || margin-right || margin-bottom || margin-left
padding : padding-top || padding-right || padding-bottom || padding-left
outline : outline-color || outline-style || outline-width
border
background : background-color || background-image || background-repeat || background-attachment || background-position
color
font : font-style || font-variant || font-weight || font-size || line-height || font-family
font : caption | icon | menu | message-box | small-caption | status-bar
text-overflow
text-align
text-indent
line-height
white-space
vertical-align
cursor
============================随机文章:
[原]边框样式的写法总结 2006-11-15[原]7月工作小结 2006-08-04[原]定义小于18px的高 2006-06-07[原]由text-indent引起的问题 2007-08-22[原]背景半透明效果 2007-08-08
收藏到:Del.icio.us
引用地址:









评论
有些标签,我都抛弃了!
我是想哪写哪,当然有些注意顺序的还是按标准来!
标准的顺序是什么?
我是想哪写哪,当然有些注意顺序的还是按标准来!
沙发!