CSS——易忘选择器

a > b : 选择a的直接子元素b

a + b : 选择紧跟a后面的b元素

a ~ b : a后面的兄弟元素b

: : first-letter : 选择首字(首字母)文本

: : first-line :选择首行

: : selection :鼠标选中文字的样式

: : target : 注解强调 (类似于文言文后面的注解圆圈里面有个1,点击此处的样式)

: empty : 选择空元素(含有空格或enter都不行)

:div实现placeholder样式

div[contenteditable]:empty:after{

    content :“请输入......”

}



猜你喜欢

转载自blog.csdn.net/qq_36111804/article/details/80802633