gpt4 book ai didi

css - Internet Explorer 11 无法识别条件 CSS

转载 作者:行者123 更新时间:2023-12-02 21:30:27 25 4
gpt4 key购买 nike

我正在为自己制作一个小作品集。在 chrome、firefox 和 opera 上,页脚没有问题,并使用

将其粘在底部
footer {
position: absolute;
left: 0;
bottom: 0;
}

但是,IE比较特殊,它不起作用。我能想到的最简单的解决方法是暗示 position: relative仅限 IE。

所以我尝试使用:

<!--[if IE]>
<style type="text/css">
footer { position: relative; }
</style>
<![endif]-->

但是我的 IE 无法识别它(也尝试链接到 iefooter.css ,没有结果)。但是,如果我删除 <!--[if IE]>所有浏览器都获取相对位置,所以一定是IE的问题?我认为我的版本是最新的 - 11.0.9600.16521

网站在这里:www.hrusov.eu 。IE 上的页脚错误发生在“大”页面上,例如 About meProjects

buggedfooter

最佳答案

从 IE 10 及更高版本开始,Microsoft 删除了 IE 条件注释。

我建议您重新设计 CSS,使其能够在 IE 10 及更高版本上运行。

关于css - Internet Explorer 11 无法识别条件 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22430253/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com