2021年3月4日
摘要: 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) 编辑