开发者

IE 9 page does not center

开发者 https://www.devze.com 2023-04-05 13:51 出处:网络
Page works fine in chrome, and IE 9 compatibil开发者_高级运维ity mode but not in actual IE 9 mode. The page is supposed to be centered. Site

Page works fine in chrome, and IE 9 compatibil开发者_高级运维ity mode but not in actual IE 9 mode. The page is supposed to be centered. Site

What am I missing here?


At the top of your main page, there's a css style defined inline on lines 100-108:

    <!--[if gte IE 7.0]>

    <style type="text/css">

    .clearfix {display: inline-block;}

    </style>

    <![endif]-->

Those conditional comments will turn your clearfix classed elements from display:block; to display:inline-block; on IE 8 and 9. If you check it in IE7, they center just fine.

Just get rid of these lines, and you'll be up and running.


It's your .clearfix and .clearfix::after styles.

When I remove those, it works fine.

0

精彩评论

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