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:46 You could use the n-th child selector. to target the nth element you could then use: td:nth-child(n) { /* your stuff here */ } (where n starts at 1) 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
table
padding
5条回答 长情又很酷 (楼主) 2020-12-25 09:46 You could use the n-th child selector. to target the nth element you could then use: td:nth-child(n) { /* your stuff here */ } (where n starts at 1) 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You could use the n-th child selector.
to target the nth element you could then use:
td:nth-child(n) { /* your stuff here */ }
(where n starts at 1)
n