:nth-child()和::before
发布于 5 年前 作者 fanghan 3165 次浏览 来自 问答

在开发过程中遇到需要用:nth-child()选择其中一个view 同时需要使用::before添加访问前的样式,但这两中可以同时使用吗

:nth-child()and::before 我这样写不作用

1 回复

view:nth-child(1)::before

这种格式就可以了,不用and

回到顶部