css选择器中 first-of-type, last-of-type, nth-of-type 中的坑
说明nth-of-type, first-of-type, last-of-type属于同一类的选择器, first-of-type 就等于 nth-of-type(1) 当使用类选择器和它们连用时,得尤其注意其所代表的意义,我当时第一次使用的时候,卡了好久,一度以为出了bug,在此记录一下. 比如.class:nth-of-type(i)所选出的是同时符合以下条件的html元素:类...
原创
2018-08-13 12:31:27 ·
2573 阅读 ·
2 评论