开发者

Table cell widths altering in IE

开发者 https://www.devze.com 2023-02-05 15:06 出处:网络
I开发者_开发问答 have a fairly complex table which is not displaying correctly in IE. For some reason it is ignoring the cell widths and making some cells bigger/smaller than I have specified.

I开发者_开发问答 have a fairly complex table which is not displaying correctly in IE. For some reason it is ignoring the cell widths and making some cells bigger/smaller than I have specified.

It works fine in Safari and Firefox.

Is this a known issue and if so is there an easy fix?


Since IE is displaying differently it may be due to default browser styles - have you tried using a reset stylesheet?

Alternatively, if you are setting all the widths on a table manually and don't want the table to adjust itself according to it's content, you can use:

table {
table-layout:fixed
}

That's about all I can suggest without seeing more code.

0

精彩评论

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