CSS常用属性

1.字体
名称font-family
大小font-size
样式font-style
粗细font-weight
简写属性font (集合写法)

2.文本
颜色color
行高line-height
对齐方式text-align
方向direction
缩进text-indent
装饰线text-decoration
间隔lettter-spacing
阴影text-shadow

3.尺寸
宽度和高度width height
最小宽度和高度 min-width min-height
最大宽度和高度 max-width max-height

4.列表-控制列表每项前面图标
list-style-image
list-style-position
list-style-type

5.背景
background-color
background-image
background-repeat
background-position
background-attachment
简写属性background
posted @ 2020-07-04 13:12  kylingx  阅读(115)  评论(0编辑  收藏  举报