欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!

举荐的CSS尺度誊录步调。

这里推荐先写显示属性,再写自身属性,再写文字属性;然则其实不代表非得按这个程序写,只是这类写法梗概使css构造更明晰易读,批改起来对照方便。并且在团队工程中能更好地行进屈就。

//显现属性
display
list-style
position
float
clear

//自身属性
width
height
margin
padding
border
background

//文本属性
color
font
text-decoration
text-align
vertical-align
white-space
other text
content

其它中央引荐CSS代码缮写按次

1.位子属性(position, top, right, z-index, display, float等)
2.大小(width, height, padding, margin)
3.文字系列(font, line-height, letter-spacing, color- text-align等)
4.配景(bac千克round, border等)
5.别的(animation, transition等)

CSS5推荐和总结,CSS代码不合属性单词书写程序与浏览器读取有关不受影响,举荐遵照本人习惯或团队民风写CSS代码便可!实质不需要考虑差距CSS属性单词代码誊录程序。

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/jiqiao/j52535.shtml