zoukankan      html  css  js  c++  java
  • 可以继承和不可以继承的样式属性

    无继承性的属性
    1.display:规定元素应该生成的框的类型
    2.文本属性

    • vertical-align:垂直文本对齐
    • text-decoration:规定添加文本的装饰
    • text-shadow:文本阴影效果
    • white-space:空白符的处理
    • unicode-bidi:设置文本的方向

    3.盒子模型的属性

    width;height;margin,margin,margin-top,margin-bottom,margin-right,margin-left;
    border,border-style,border-top-stye,border-right-style,border-bottom-style,border-left-style,
    border-width,border-top-width,border-bottom-width,border-right-width,border-left-width,
    border-color,border-top-color,border-bottom-color,border-left-color,border-right-color,
    border-top,border-right,border-bottom,border-left;
    padding,padding-top,padding-padding-right,padding-bottom,padding-left;

    4.背景属性
    background,background-color,background-image,background-repeat,background-position,background-attachment;
    5.定位属性
    float,clear,position,top,right,bottom,left,min-width,min-height,max-width,max-height,overflow,clip,z-index
    总结:
    可以继承的样式属性包含(字体系列样式属性,文本系列样式属性:text-align、line-height、text-indent)
    不可继承的属性display:inline、block、inline-block、table-cell、none文本类:盒子模型,背景类,浮动类,定位类

  • 相关阅读:
    mongoTemplate.aggregate()聚合查询
    解决ElasticSearch5.x中@Field注解之IK分词不能用的问题
    Mybatis中使用Enum传参
    过滤,去重filter,去重reduce
    自己写的数组 方法的组合使用
    uni-app 使用vuex的方法
    uni-app实战写法
    vue的bug问题
    vuex
    vue webapp的基本功能实现方法
  • 原文地址:https://www.cnblogs.com/webaction/p/13630246.html
Copyright © 2011-2022 走看看