【发布时间】:2015-03-07 18:59:42
【问题描述】:
在代码标签中 Main 和 Footer 放置在同一级别。
<main class="Full">
<div class="Sleeve">
<div class="Columns">
<div class="LeftCol"> </div>
<div class="RightCol"> </div>
</div>
</div>
</main>
<footer class="Full">
<div class="Sleeve">
<div class="FooterData"> 2014 - 2015<div id="mymap"></div></div>
</div>
</footer>
但是 IE11 在 div.RightCol 之后将 Footer 删除到 Main。我不明白为什么IE重新设计DOM这么奇怪? p.s.我希望页脚始终放在页面底部,因此对于 CSS 中的页脚,我指定位置:绝对。也许是麻烦的原因?还是IE不能定义标签Footer和Main(Doctype - html5)的原因?
页脚在关闭主标签之后。
非常感谢!这正是我所需要的。
UPD:确实,在 IE11 中一切正常,我在 html 代码中犯了错误。对于误导性问题,我深表歉意。
【问题讨论】:
-
因为
footer是一个html5标签。请参阅 caniuse 网站上的caniuse html5 semantic。当然,这只能解释您与 IE8 相关的问题。 -
感谢本站!那么,我在 IE11 中的问题是因为所有版本的 IE 都不支持 Main?
-
至于 IE11 问题肯定出在其他地方,但没有 CSS 就很难猜到了。你能发布你的 CSS 样式吗?
-
除了更改标签,还有什么救生窍门吗?
-
main{ min-height:100%;填充:0 0 30px;位置:相对;顶部:-15px; }
标签: css internet-explorer dom position absolute