CSS: Selecting table's without the s of nested tables

后端 未结 3 863
礼貌的吻别
礼貌的吻别 2021-01-18 13:17

How do you select the td elemennts of a table, without the td\'s of the nested tables ?
I thought of the following selector: table > tbody &g

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-18 14:05

    Honestly, I don't think what you're trying to achieve is possible. What you might do is overwrite any unwanted styles to the nested table cells. So if you apply a red background to a cell, and that cell has nested cells, you need to overwrite the nested cells with the original background color.

提交回复
热议问题