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

后端 未结 3 835
礼貌的吻别
礼貌的吻别 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:15

    So you have this?

    ...

    And you want to only select td's in the root table.

    #outer>tbody>tr>td
    

    Just like you entered in your question (direct child selectors).

提交回复
热议问题