How to add CSS if element has more than one child?

前端 未结 6 1748
不思量自难忘°
不思量自难忘° 2020-12-28 14:40

I have td tags and a several div inside td:


   
6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 15:04

    here you go:

    td:not(:has(div:first-child:last-child))
    

    bonus

    td:not(:has(div:only-child))
    

提交回复
热议问题