css哪些属性可以进行继承?

一、有继承性的属性

1、字体系列属性

    font、font-size、font-family、font-style、font-variant、font-stretch、font-size-adjust

2、文本系列属性

    text-algin、text-indent、line-height、word-spacing、letter-spacing、text-transform、color、direction

3、可见属性

    visiblility

4、表格布局属性

   caption-side、border-callapse、border-spacing、empty-cells、table-layout

5、列表属性

   list-style-type、list-style-image、list-style-position、list-style

6、生成内容属性

   quotes

7、光标属性

   cursor

8、页面样式属性

   page、page-break-inside、windows、orphans

9、声音样式属性

   speak、speak-punctuation、speak-numeral、speak-header、speech-rate、

   volume、voice-family、pitch、pitch-range、stress、richness、、azimuth、elevation

 

二、不可继承属性

1、显示隐藏属性

   display

2、盒模型属性

  宽 widht,高 height,内边距 padding,外边距margin

3、背景属性

  背景颜色background-color,图片background-image,位置background-position,大小background-size,是否重复repeat

4、文本属性

  vertical-align、text-decoration、white-space空白符处理

5、定位属性

  float、chear、top、right、bottom、min-、max-

6、生成内容属性

  content、content-reset、content-increment

7、页面样式属性

  size、page-break-before、page-break-after 

posted @ 2020-08-20 09:43  程序員劝退师  阅读(2024)  评论(0编辑  收藏  举报