0

I'm having trouble rendering an ASP.NET gridview with internet explorer 8. It works fine in other browsers but IE is giving me issues.

When a user clicks the edit button it will display a save/cancel button, but they seem to not get put on the same row in IE. In other browsers it will decrease the size of the cells and tile the buttons appropriately.

It looks like this in IE8: IE

This is the way it should look (from Opera): Proper

The code for generating the gridview can be found in this pastebin.

And the css for the gridview styling can be found in this pastebin

I also perform a css reset as such, so I'm not so sure why I'm having this issue as that should take care of the default values, I also use the XHTML 1.0 Strict doctype which should force IE into the slightly more standardized mode.

I'd appreciate an any pointers or help, Thanks for your time!

4

1 に答える 1

1

Internet Explorer 8には、既知の幅計算のバグがたくさんあるようです。

http://snook.ca/archives/html_and_css/ie8-bug-max-width-overflow

http://edskes.net/ie/ie8overflowandexpandingboxbugs.htm

Internet Explorer 8は、「display:table-cell」要素の幅を無視します

テーブルセルの幅を手動で強制するか、セルの内容を強制幅のdivでラップする必要がある場合があります。

于 2012-09-21T12:11:02.423 に答える