css属性()()()()

css背景属性:

  1. background-color  背景颜色     
  2. background-image 定义背景照片   none/inherit/url(图片的URL) 
  3. background-repeat   定义背景图片是否重复....   repeat/repeat-x/repeat-y/no-repeat/inherit
  4. background-attachment   定义背景图片是否随内容滚动   scroll/fixed/inherit
  5. background-position   定义背景图片的水平位置和垂直位置

用法:<td style="background-color: red;">红色</td>

css字体属性:

  1. font-family   定义字体系列
  2. font-size     定义文本字体尺寸
  3. font-style    定义是否斜体        normal/italic/oblique/inherit
  4. font-variant    定义是否以大小写字体显示    normal/small-caps/inherit
  5. font-weight     定义字体的粗细   normal/bold/bolder/lighter/100/200/300/400...900/inherit

css文本属性:

  1. color    定义文本颜色
  2. direction      定义文本书写方向               ltr/rtl/inherit
  3. letter-spacing     定义字符间距                 normal/长度/inherit
  4. line-height          定义文本行高                normal/number/长度/百分比/inherit
  5. text-align            定义文本水平对齐方式       left/right/center/inherit
  6. text-decoration    为文本添加装饰效果     none/underline/overline/line-through/blink/inherit
  7. text-indent            定义文本首行缩进方式     长度/百分比/inherit
  8. text-shadow          为文本添加阴影      x-position/y-position/blur/color
  9. text-transform       切换文本的大小写     none/capiitalize/uppercase/lowercase/inherit
  10. white-space           设置如何处理元素的空白         normal/pre/nowrap/inherit
  11. word-spacing         定义单词之间的距离        normal/长度/inherit

CSS尺寸属性

  1. width                      设置元素的宽度                     auto/长度/百分比/inherit
  2. min-wdith                设置元素的最小宽度             长度/百分比/inherit   
  3. max-width                设置元素的最大宽度            长度/百分比/inherit
  4. height                     设置元素的高度                     auto/长度/百分比/inherit
  5. min-height               设置元素的最小高度             长度/百分比/inherit
  6. max-height               设置元素的最大高度            长度/百分比/inherit

css列表属性

  1. list-style-image           设置列表项标记样式为图像         none/inherit/url
  2. list-style-position          设置列表项标记的位置                inside/outside/inherit
  3. list-style-type          设置列表项标记的类型               none/disc/circle/square/decimal/lower-roman/upper-roman/lower-alpha/upper-alpha
  4. list-style                     可以用一条样式定义各种列表属性              以上三个属性值

css表格属性:

  1. border-collapse                     设置是否合并表格边框               separate/collapse/inherit
  2. border-spacing                       设置相邻单元格边框之间的距离              长度/长度/inherit
  3. caption-side                          设置表格标题的位置                                  top/bottom/inherit
  4. empty-cells                           设置是否显示表格中空单元格上的边框和背景       show/hide/inherit
  5. table-layout                           设置用于表格的布局算法                 auto/fixed/inherit

猜你喜欢

转载自blog.csdn.net/weixin_57533660/article/details/120237412