Select element based on child class

后端 未结 4 2023
北恋
北恋 2021-01-07 19:26

Is there a way in CSS to select an element which has a sub-element with given class?

I want to apply a style to a

    list that has
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-07 19:54

    ul li {
        /* styles */
    }
    

    Is this what you're asking for?

提交回复
热议问题