两者都是选择器,在CSS和JS中,都可以用来选择元素。得到一个元素,或者元素集。 x:nth-child(n) 获取 x元素的父元素中,第n个元素。无类型限制。 x:nth-of-type … Continue reading nth-child()和nth-of-type()的区别,以及如何在nth中添加变量和表达式
两者都是选择器,在CSS和JS中,都可以用来选择元素。得到一个元素,或者元素集。 x:nth-child(n) 获取 x元素的父元素中,第n个元素。无类型限制。 x:nth-of-type … Continue reading nth-child()和nth-of-type()的区别,以及如何在nth中添加变量和表达式