简体   繁体   中英

Page works fine in chrome/firefox but doesn't in IE

this is my page.

essentially i'm trying to get it to work on IE as well and correctly layout my page, but for a completely unknown reason it refuses to do that. all of the tag doesn't seem to be contained at all and the layout is completely wrong.

Whereas trying on both chrome and firefox the entire thing looks identical and works fine.

Check here. The way IE and other browsers may proceed your floating value different.

w3c CSS validation

And don't forget that IE was always different and possible will be. Many web developers got bored to write special code blocks for IE and it's left to it's destiny. Suggest you to left also if you don't want to bloat your code with extra code.

尝试在开头部分添加此行

<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM