Firefox 1 pixel bug with border-collapse, workaround?

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

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

    

        
12条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 19:28

    Ran into this issue and as a work around. I used :

    table{border-collapse:separate;border-spacing:1px;border:none;background-color:#ccc;}
    table td{border:none;}
    

    basically cheated the border by using a background color. Which thus prevented double inside borders.

提交回复
热议问题