开发者

cross-browser tableborder-color resetting

开发者 https://www.devze.com 2022-12-17 00:58 出处:网络
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.

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

精彩评论

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