css继承属性

189 阅读1分钟

继承属性

  1. 字体系列

    • font
    • font-family
    • font-weight
    • font-size
    • font-style
    • font-variant: small-caps; 所有小写字母转成大写字母,但是与其他文本相比尺寸更小
  2. 文本系列

    • text-indent
    • text-align
    • line-height
    • word-spacing
    • letter-spacing: 字符间距
    • text-transform: capitalize; 转大写 lowercase; 转小写
    • direction:文字方向
    • color
  3. 元素可见性

    • visibility
  4. 表格布局

    • border-collapse
    • border-spacing
    • empty-cell
  5. 列表布局

    • list-style-type
    • list-style-image
    • list-style-position
    • list-style
  6. 光标属性

    • cursor

参考博客