If I have a table with two columns, how do I specify a padding or any other css so that it is applied just for the first column of 5条回答 孤独总比滥情好 (楼主) 2020-12-25 09:48 To select the first column of a table you can use this syntax tr td:nth-child(1n + 2){ padding-left: 10px; } 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
table
padding
5条回答 孤独总比滥情好 (楼主) 2020-12-25 09:48 To select the first column of a table you can use this syntax tr td:nth-child(1n + 2){ padding-left: 10px; } 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
To select the first column of a table you can use this syntax
tr td:nth-child(1n + 2){ padding-left: 10px; }