Apply style to only first level of td tags

后端 未结 7 1787
执念已碎
执念已碎 2020-12-13 03:29

Is there a way to apply a Class\' style to only ONE level of td tags?



7条回答
  •  一个人的身影
    2020-12-13 03:33

    I wanted to set the width of the first column of the table, and I found this worked (in FF7) - the first column is 50px wide:

    #MyTable>thead>tr>th:first-child { width:50px;}
    

    where my markup was

...
Col1 Col2

提交回复
热议问题