我在 IE7 中测试我的网站时遇到了问题。我有 2 个容器,它们应该彼此相邻漂浮。它在现代网络浏览器中运行良好,但在旧版本的 IE 中,右侧容器被推到左侧容器下方。任何人都可以看到问题吗?主容器设置为 1000px 宽度。这是有问题的 2 个 div 的代码:
#content {
    width: 725px;
    float: left;
    margin: 0 25px 25px 0;
    clear: both;
}
#SideBar {
    width: 225px;
    min-height: 500px;
    float: left;
    margin: 0 0 50px 25px;
}
    #SideBar img {
        display: table;
        margin: 20px auto 0 auto;
        border: 0;
    }
这是html:
<div id="PageWrapper">
<nav id="MainMenu">
</nav>
<header id="Header">
</header>
<section id="PageSlider">
<div id="content">
</div>
</section>
<aside id="SideBar">
</aside>
</div>
你可以看看ashbaines.com的网站
该网站适用于识别 html5 标签。
谢谢