CSS重新学习捡漏 (1)
- CSS3属性选择器
div[attr]
div[attr="attr"]
div[attr^="attr"]
div[attr$="attr"]
div[attr*="attr"]
- 结构伪类选择器
div:first-child
div:last-child
div:nth-child(n)
div span:first-of-type
div span:last-of-type
div span:nth-of-type(n)
- 伪元素选择器 --必须有content属性
::after
::before