zoukankan      html  css  js  c++  java
  • css的继承性理解

    1) 所有的text 相关属性都被继承:
    如 font-family font-size; font-style;font-weight;font;font-variant;letter-spacing.line-height;
    text-align text-indent; text-transfrom word-spacing

    1. 所有的list相关属性都会被继承

    3)color属性也会被继承 //color 是定义元素前景色的属性

    4)不是所有的属性都会被继承

    1.文本相关属性是可以被继承的:font-size,font-family,line-height,text-index等

    2.列表相关属性是可以被继承的:list-style-type等

    3.颜色相关属性是可以被继承的:color

  • 相关阅读:
    StateListDrawable状态选择器
    Shape
    每周随笔
    每周随笔
    每周随笔
    每周随笔
    每周随笔
    每周随笔
    每周随笔

  • 原文地址:https://www.cnblogs.com/wangshichuan/p/4087844.html
Copyright © 2011-2022 走看看