简体   繁体   中英

Internet Explorer 9 - CSS Breaking

I have this mock up HTML/CSS website here that is working perfectly fine on Firefox/Chrome but on Internet Explorer, the organization of the page is breaking; footer div is coming to the header section). I have tried to debug it but no luck.

It would be great if you can take a look into it and give me some pointers.

https://www.csupomona.edu/~tahoang/tu-template/

Thanks!!

You have a couple of duplicate IDs in use. I would start by fixing those.

http://validator.w3.org/check?uri=https%3A%2F%2Fwww.csupomona.edu%2F~tahoang%2Ftu-template%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

Looks fine to me in IE 8, IE 9 and Chrome. Do you have compatibility view enabled in IE 9?

Try adding this to the <head>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

Also fix those duplicate IDs Tim mentions, but this Meta tag will fix all your IE9 problems ;)

I also notice in the Footer that you having a bunch of the columns positioned relatively, there is no need for that. You may remove that.

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