Is there a way to apply a Class\' style to only ONE level of td tags?
7条回答 轮回少年 (楼主) 2020-12-13 03:41 Just make a selector for tables inside a MyClass. .MyClass td {border: solid 1px red;} .MyClass table td {border: none} (To generically apply to all inner tables, you could also do table table td.) 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Just make a selector for tables inside a MyClass.
.MyClass td {border: solid 1px red;} .MyClass table td {border: none}
(To generically apply to all inner tables, you could also do table table td.)
table table td