0

My website is http://everythingfunny.net

If you look at it in almost any browser (Firefox, Chrome, Opera, Android Browser, etc) it looks the way i'd like for it to. I was at my parent's house, and they use IE8, and boy does the site look like a train wreck. How can I make my site more IE compatable. This is why I hate front-end development so much. Thanks in advance!

4

1 回答 1

6

您的网页没有文档类型。结果,在 IE 中触发了 quirks 模式。

在您的网页开头添加以下内容:

<!doctype html>

至于 IE7 中的页面偏离中心,这是由以下 CSS 代码引起的:

.row {
    zoom: 1;
}

删除zoom声明,页面将在 IE7 中正确居中。

于 2012-08-05T21:21:18.767 回答