Multiple CSS Pseudo Classes

后端 未结 5 687
攒了一身酷
攒了一身酷 2020-12-09 14:22

What is the proper CSS syntax for applying multiple pseudo classes to a selector. I\'d like to insert \",\" after each item in a list except the last one. I am using the f

5条回答
  •  没有蜡笔的小新
    2020-12-09 15:02

    There is no problem nesting pseudo class selectors as long as the rules applied match the particular element in the DOM-tree . I want to echo the possibilities of styling with pseudo class selectors from w3 website . That means you can also do stuff like :

    .ElClass > div:nth-child(2):hover {
        background-color: #fff;
        /*your css styles here ... */
    }
    

提交回复
热议问题