后代选择器
h1 em {}
子元素选择器
h1 > em{}
相邻兄弟选择器(只对相邻元素起作用)
h1 + em {}
通用兄弟选择器(~必须为英文)
h1 ~ em
附:复选框选中状态下的css
.selectBtn:checked+.unCheckedImg {}
input 获得焦点状态
.searchGoods:focus{}
占位符样式
.searchGoods::placeholder{}
css 浏览器前缀
animation
-moz-animation
-webkit-animation
-ms-animation
-o-animation:
网友评论