Targeting specific column in table

后端 未结 1 1787
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)
提交回复
热议问题