css样式一些记录
list-style: none; 列表样式,无样式
float: left;图像的左侧和右侧均不允许出现浮动元素:
overflow: auto; overflow 属性规定当内容溢出元素框时发生的事情
display: block ; block:块级
块级元素:
动占据一定矩形空间,可以通过设置高度、宽度、内外边距等属性,来调整的这个矩形的样子;
行内元素:
自己的独立空间,它是依附于其他块级元素存在的,因此,对行内元素设置高度、宽度、内外边距等属性,都是无效的。而span元素的默认display属性值为“inline”,称为“行内”元素
text-decoration: none;
text-decoration 属性规定添加到文本的修饰,下划线、上划线、删除线等
nth-child(n) 伪类选择器
nth-last-child()
nth-of-type() 选择 li标签指定元素
nth-last-of-type()
last-of-type
only-child 选择唯一子元素
empty选择空元素
伪元素
向某些选择器设置特殊效果
::first-letter将特殊的样式添加到文本的首字母
::first-line
::before
.demo01::before{
content: url(…/img/peri.jpg);
}
::after