How to get css background color on tag to span entire row

前端 未结 8 1670
旧时难觅i
旧时难觅i 2020-12-24 04:53

I have tried everything I can think of in css in order to get a background color to span an entire table row ( tag) But I keep getting a white border around each

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 05:26

    Removing the borders should make the background color paint without any gaps between the cells. If you look carefully at this jsFiddle, you should see that the light blue color stretches across the row with no white gaps.

    If all else fails, try this:

    table { border-collapse: collapse; }
    

提交回复
热议问题