css中同時使用多個僞元素和僞類

一、例如須要使用:.list-item::after 同時也要使用:.list-item:last-childcode 那麼須要把最後一個對象的after覆蓋掉的話能夠這麼操做:對象 .list-item:last-child::after{ //write the styles } 或者第二個方法:it .list-item:last-child { &:after{
相關文章
相關標籤/搜索