Border around specific rows in a table?

后端 未结 10 1586
轮回少年
轮回少年 2020-12-02 08:10

I\'m trying to design some HTML/CSS that can put a border around specific rows in a table. Yes, I know I\'m not really supposed to use tables for layout but I don\'t know en

10条回答
  •  感动是毒
    2020-12-02 08:53

    The only other way I can think of to do it is to enclose each of the rows you need a border around in a nested table. That will make the border easier to do but will potentially creat other layout issues, you'll have to manually set the width on table cells etc.

    Your approach may well be the best one depending on your other layout rerquirements and the suggested approach here is just a possible alternative.

    no border no border here either
    one two
    three four
    once again no borders
    hello
    world

提交回复
热议问题