欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
CSS 选择符有哪些?
 
id 选择器 #app
 
类选择器 .container
 
标签选择器 div, h1, p
 
子选择器 ul > li
 
后代选择器 h1 p
 
兄弟选择器 li —— a
 
相邻兄弟选择器 li + a
 
属性选择器 a[rel="external"]
 
伪类选择器 a:hover, li:nth-child
 
伪元素选择器 ::before、::after
 
通配符选择器 *

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h64696.shtml