2007-05-15[原]CSS书写顺序

TAG:CSS 原创 经验之谈

整理了一下自己写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
============================






TrackBack URL: {#ping_url} 
Ghost 发表于 14:09  |  引用_0  |  编辑

Recent Articles

Recent Comments

Recommend

广 州
The WeatherPixie

Search Engine Optimization

CSS森林:30247792
(精神正常者慎入!)

有话就说
狼迹天涯 () @ 2007-05-18 13:03:55

十三秀 () @ 2007-05-18 10:40:08

有些标签,我都抛弃了!



我是想哪写哪,当然有些注意顺序的还是按标准来!





标准的顺序是什么?

greengnn () @ 2007-05-18 11:03:43

up

柒米 (http://www.keymi.cn) @ 2007-05-18 10:59:33

鬼爷的文章偶先载了才看的。

你老板 () @ 2007-05-18 10:48:54

我顶你个肺~

十三秀 () @ 2007-05-18 10:40:08

有些标签,我都抛弃了!



我是想哪写哪,当然有些注意顺序的还是按标准来!



沙发!

林小志 (http://www.linxz.cn) @ 2007-05-18 10:38:52

我顶你个肺~

Ghost 回复 林小志 说:
...
(2007-05-18 12:04:40)

有话要说
011 本BLOG[原]部分的内容采用创作共用授权,请尊重劳动成果,谢谢。
Copyright © 2006 风的影子. All rights reserved.   FORESt.blOGbUS.COM  BLOGBUS.COM