Firefox 1 pixel bug with border-collapse, workaround?

后端 未结 12 2598
误落风尘
误落风尘 2020-12-07 18:59

Is there any workaround for the following \"1 pixel to the left\" bug?

    

        
12条回答
  •  隐瞒了意图╮
    2020-12-07 19:36

    I was bitten by this today. The offered work-arounds didn't work for me, so I found my own:

    table { border: 1px solid transparent; border-collapse: collapse; }
    

    This way, you get collapsed borders, no double borders, and everything within the boundaries you desire, without browser-specific rules. No drawbacks.

提交回复
热议问题