开发者

cross-browser tableborder-color resetting

Whats the best way to reset and then rewrit开发者_如何学Pythone the tableborder-color for the most common browsers, let's say FF, Opera, Safari and Chrome so that it will look the same as in IE.

IE:

cross-browser tableborder-color resetting

(source: datapeak.net)

Firefox, etc:

cross-browser tableborder-color resetting

(source: datapeak.net)

it seems that a browser selector is neccessary, because different browsers interpret the same hexadecimal values differently.


Why not use css instead? Something like the following will give you a cross-browser look:

<style type="text/css">
    table.myclass
    {
        border-collapse: collapse;
        border: 2px solid green;
        width: 300px;
    }
    table.myclass td
    {
        border: 2px solid green;
    }
</style> 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜