相关疑难解决方法(0)

Firefox 1像素错误与边界崩溃,解决方法?

以下"左侧1个像素"错误是否有任何解决方法?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">                                   
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">   
<body>
<div style="padding: 50px">
<div style="border: 1px solid red">Table header info</div>
<table style="border: 1px solid green; border-collapse: collapse; width: 100%">
    <tbody>
        <tr>
            <th>Col1</th>
            <th>Col2</th>
        </tr>
        <tr>
            <td>Hello</td>
            <td>World</td>
        </tr>
    </tbody>
</table>
<div style="border: 1px solid red">Table footer info</div>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

它看起来像这样:

Firefox CSS bug http://i42.tinypic.com/245x9ud.png

这有什么纯CSS解决方案吗?


编辑

我对我的桌子有点不清楚,所以这里又是:

边界崩溃:

Firefox CSS bug http://i42.tinypic.com/245x9ud.png

使用cellspacing ="0"并且没有建议的边框折叠:

Firefox CSS bug http://i44.tinypic.com/2rg0qxi.png

所以现在我桌子里的边框加倍了,但是我希望桌子上有1px的边框.

当我从表中删除1px边框时,我以:

Firefox CSS bug http://i40.tinypic.com/2vbokmq.png …

css firefox rendering border

36
推荐指数
4
解决办法
4万
查看次数

标签 统计

border ×1

css ×1

firefox ×1

rendering ×1