Table width 100% is off by a single pixel (depending on actual width)

前端 未结 3 1451
轻奢々
轻奢々 2021-02-14 03:12

I have a table in a div inside another div. The direct container has a width of 40%, and I want the table to be as wide as th

3条回答
  •  逝去的感伤
    2021-02-14 03:29

    I think it's to do with inset/outset borders - which are different between browsers. Try applying a border to the parent div instead of the table. This should sort it out.

提交回复
热议问题