乐鱼电竞

    教育行业A股IPO第一股(股票代码 003032)

    全国咨询/投诉热线:400-618-4000

    哪些css属性可以继承?哪些不可以继承?

    更新时间:2021年09月20日14时36分 来源:乐鱼电竞 浏览次数:

    CSS中能继承的属性有哪些?

    1. 字体系列属性:font、font-family、font-weight、font-size、font-style;

    2. 文本系列属性:

    ·内联元素:color、line-height、word-spacing、letter-spacing、text-transform;

    ·块级元素:text-indent、text-align;

    3. 元素可见性:visibility

    4. 表格布局属性:caption-side、border-collapse、border-spacing、empty-cells、table-layout;

    5. 列表布局属性:list-style


    CSS中不能继承的属性有哪些?

    1. display:规定元素应该生成的框的类型;

    2. 文本属性:vertical-align、text-decoration;

    3. 盒子模型的属性:width、height、margin 、border、padding;

    4. 背景属性:background、background-color、background-image;

    5. 定位属性:float、clear、position、top、right、bottom、left、min-width、min-height、max-width、max-height、overflow、clip;

    CSS教程



    猜你喜欢:

    什么是CSS浮动?有什么作用?

    CSS如何去除图片间隙?

    如何用css画圆?

    乐鱼电竞HTML&JS+前端培训课程

    0 分享到:
    和我们在线交谈!
  1. 【网站地图】【sitemap】