css中同时使用多个伪元素和伪类

一、例如须要使用:.list-item::after 同时也要使用:.list-item:last-childcode 那么须要把最后一个对象的after覆盖掉的话能够这么操做:对象 .list-item:last-child::after{ //write the styles } 或者第二个方法:it .list-item:last-child { &:after{
相关文章
相关标签/搜索