CSS中会被继承的属性有哪些
文章目录
当一个属性不是继承属性的时候,此时可以使用 inhert关键字 来指定一个属性应该从父元素继承他的值,inhert关键字用于显示的指定继承性,可以用于任何继承性和非继承性。文本类:
text-indent
text-align
line-height
word-spacing
letter-spacing
text-transform
direction
color字体类:
font
font-family
font-weight
font-size
font-style
font-variant
font-stretch
font-size-adjust表格
table-layout
caption-side
border-collapse
empty-cells列表
list-style-type
list-style-image
list-style-position
list-style鼠标(光标)
cursor元素是否可见
visibility其它类:
border-spacing
quotes
page
page-break-inside
windows
orphans
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论