会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
occc
博客园
首页
新随笔
联系
订阅
管理
2021年3月4日
nth-child() 无法选中问题
摘要: nth-child()为div选择器,无法对其他标签类型起效, 当需要选择<span>时使用nth-of-type() 在父容器div下的各子元素,如果是混合类型的情况下,要指定其中某一类元素的第几个,那就要用nth-of-type(n) 要指定第1个span就要用span:nth-of-type(
阅读全文
posted @ 2021-03-04 11:25 occc
阅读(597)
评论(0)
推荐(0)
编辑