您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

css属性可分为哪几大类

2026/1/5 21:46:25发布19次查看
css属性可分为可继承性属性和不可继承性属性两大类。可继承属性包括:visibility、cursor、line-height等;不可继承属性包括display、margin、border等。
css属性根据继承性可以分为两大类,分别是:可继承性属性、不可继承性属性。
(学习视频分享:css视频教程)
一、可继承属性
所有标签可继承:
visibility:行高
cursor
内联标签可继承:
line-height:行高
color:文字颜色
font-family:文字字体
font-size:文字大小
font-weight:文字加粗
text-decoration:文字下划线
块级标签可继承:
text-indent:缩进
text-aligin:对齐
列表标签可继承:
list-style:列表
二、不可继承属性
display、margin、border、padding、background
height、min-height、max-height、width、min-width、max-width
overflow(隐藏标签多余部分的内容)、position、left、right、top、bottom、z-index
相关推荐:css教程
以上就是css属性可分为哪几大类的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product