当前位置: 首页 > Web前端 > HTML

CSS中有哪些属性会被继承?

时间:2023-03-28 11:48:34 HTML

当一个属性不是被继承的属性时,可以使用inherit关键字来指定一个属性应该从父元素继承它的值。inherit关键字用于指定继承的显示性,可用于任何继承和非继承。文本类:text-indenttext-alignline-heightword-spacingletter-spacingtext-transformdirectioncolorFont类:fontfont-familyfont-weightfont-sizefont-stylefont-variantfont-stretchfont-size-adjusttabletable-layoutcaption-sideborder-collapsempty-cellslistlist-style-typelist-style-imagelist-style-positionlist-stylemouse(cursor)光标元素是否可见visibility其他类:border-spacingquotespagepage-break-insidewindowsorphans