[css] 请举例说明css有哪些不可继承的属性?

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

2、文本属性:

vertical-align:垂直文本对齐

text-decoration:规定添加到文本的装饰

text-shadow:文本阴影效果

white-space:空白符的处理

unicode-bidi:设置文本的方向

3、盒子模型的属性:widthheightmarginmargin-topmargin-rightmargin-bottommargin-leftborderborder-styleborder-top-styleborder-right-styleborder-bottom-styleborder-left-styleborder-widthborder-top-widthborder-right-rightborder-bottom-widthborder-left-widthborder-colorborder-top-colorborder-right-colorborder-bottom-colorborder-left-colorborder-topborder-rightborder-bottomborder-leftpaddingpadding-toppadding-rightpadding-bottompadding-left

4、背景属性:backgroundbackground-colorbackground-imagebackground-repeatbackground-positionbackground-attachment

5、定位属性:floatclearpositiontoprightbottomleftmin-widthmin-heightmax-widthmax-heightoverflowclipz-index

6、生成内容属性:contentcounter-resetcounter-increment

7、轮廓样式属性:outline-styleoutline-widthoutline-coloroutline

8、页面样式属性:size、page-break-beforepage-break-after

9、声音样式属性:pause-beforepause-afterpausecue-beforecue-aftercue、play-during

个人简介

我是歌谣,欢迎和大家一起交流前后端知识。放弃很容易,
但坚持一定很酷。欢迎大家一起讨论

主目录

与歌谣一起通关前端面试题