css背景属性:
- background-color 背景颜色
- background-image 定义背景照片 none/inherit/url(图片的URL)
- background-repeat 定义背景图片是否重复.... repeat/repeat-x/repeat-y/no-repeat/inherit
- background-attachment 定义背景图片是否随内容滚动 scroll/fixed/inherit
- background-position 定义背景图片的水平位置和垂直位置
用法:<td style="background-color: red;">红色</td>
css字体属性:
- font-family 定义字体系列
- font-size 定义文本字体尺寸
- font-style 定义是否斜体 normal/italic/oblique/inherit
- font-variant 定义是否以大小写字体显示 normal/small-caps/inherit
- font-weight 定义字体的粗细 normal/bold/bolder/lighter/100/200/300/400...900/inherit
css文本属性:
- color 定义文本颜色
- direction 定义文本书写方向 ltr/rtl/inherit
- letter-spacing 定义字符间距 normal/长度/inherit
- line-height 定义文本行高 normal/number/长度/百分比/inherit
- text-align 定义文本水平对齐方式 left/right/center/inherit
- text-decoration 为文本添加装饰效果 none/underline/overline/line-through/blink/inherit
- text-indent 定义文本首行缩进方式 长度/百分比/inherit
- text-shadow 为文本添加阴影 x-position/y-position/blur/color
- text-transform 切换文本的大小写 none/capiitalize/uppercase/lowercase/inherit
- white-space 设置如何处理元素的空白 normal/pre/nowrap/inherit
- word-spacing 定义单词之间的距离 normal/长度/inherit
CSS尺寸属性
- width 设置元素的宽度 auto/长度/百分比/inherit
- min-wdith 设置元素的最小宽度 长度/百分比/inherit
- max-width 设置元素的最大宽度 长度/百分比/inherit
- height 设置元素的高度 auto/长度/百分比/inherit
- min-height 设置元素的最小高度 长度/百分比/inherit
- max-height 设置元素的最大高度 长度/百分比/inherit
css列表属性
- list-style-image 设置列表项标记样式为图像 none/inherit/url
- list-style-position 设置列表项标记的位置 inside/outside/inherit
- list-style-type 设置列表项标记的类型 none/disc/circle/square/decimal/lower-roman/upper-roman/lower-alpha/upper-alpha
- list-style 可以用一条样式定义各种列表属性 以上三个属性值
css表格属性:
- border-collapse 设置是否合并表格边框 separate/collapse/inherit
- border-spacing 设置相邻单元格边框之间的距离 长度/长度/inherit
- caption-side 设置表格标题的位置 top/bottom/inherit
- empty-cells 设置是否显示表格中空单元格上的边框和背景 show/hide/inherit
- table-layout 设置用于表格的布局算法 auto/fixed/inherit