Apply style to only first level of td tags

后端 未结 7 1795
执念已碎
执念已碎 2020-12-13 03:29

Is there a way to apply a Class\' style to only ONE level of td tags?



7条回答
  •  孤街浪徒
    2020-12-13 03:46

    This style:

    table tr td { border: 1px solid red; }
    td table tr td { border: none; }
    

    gives me:

    this http://img12.imageshack.us/img12/4477/borders.png

    However, using a class is probably the right approach here.

提交回复
热议问题