css常用属性
1.背景:(1)背景颜色background-color
(2)背景图片background-image
(3)是否重复background-repeat:repeat-x;repeat-y;no-repeat
2.文本:(1)字体颜色color
(2)对齐方式text-align
(3)文本修饰text-decoration ps:去除文本效果:text-decoration:none
(4)首行缩进text-indent:2em 1em=17px
3.对齐方式
text-align(1)左对齐left(2)右对齐right(3)两端对齐justify
4.display属性
5.浮动
6.盒子模型
margin 外边框:设置一个元素所有外边框的宽度,或者设置各边上外边框的宽度
margin-top,margin-bottom,margin-left,margin-right
ps: