Targeting specific column in table

后端 未结 1 1782
Happy的楠姐
Happy的楠姐 2021-02-15 06:01

I have a table of class players with 5 columns and 40 rows. I want to make the second column have width: 200px.

I can not figure out how to se

相关标签:
1条回答
  • 2021-02-15 06:32

    This should work (except on IE8 and below):

    table.players td:nth-child(2) { width: 200px; }
    
    0 讨论(0)
提交回复
热议问题