CSS中我不常用的属性

选择器
p:first-letter 设置对象内的第一个字符的样式,必须是块级对象
p:first-line 设置对象内的第一行字符的样式,必须是块级对象

定位
relaive 相对定位,参照自身文档流中的位置进行偏移
absolute 绝对定位,参照离自身最近的定位祖先元素进行定位,脱离了文档流
fixed 参照视图窗口进行定位

元素层次,配合定位使用 z-index

布局
display :run-in 根据上下文来决定是内联还是块级元素
display :inline-flex 内联块级弹性伸缩盒

清除浮动
clear : left/right/both

设置可见性
visibility : visile / hidden

设置内容溢出操作
overflow : hidden / scroll / auto

尺寸
max-width min-width
max-height min-height

边框
border-image

背景
background-attachment
background-origin

透明度
opacity

文本大小写处理
text-transform : capitalize 首字母大写 upercase lowercase

空格处理方式
white-space

文本对齐方式
text-align: start(内容对齐开始边界)
end(内容对齐结束边界)
justify(两端对齐)
justify-all(效果等同于justify,但还是让最后一行两端对齐)

文本修饰
text-decoration 文本修饰
text-decoration-line 设置文本修饰的装饰线的位置
text-decoration-color 设置文本修饰的装饰线的颜色
text-decoration-style 设置文本修饰的装饰线的样式
text-decoration-skip
text-underline-position

列表
list-style-type 列表项目标记
list-style-position 标记的位置
list-style-image 标记的图像

CSS中我不常用的属性