【发布时间】:2014-12-22 18:28:05
【问题描述】:
我的网站似乎运行良好。只有当我在 IE8 中查看它时,它似乎才使用我的移动设置。我可以看到它,因为导航是移动导航。我想知道这可能是什么原因。这是网址:http://www.embo-architecten.be。
希望大家帮忙!
【问题讨论】:
标签: css internet-explorer
我的网站似乎运行良好。只有当我在 IE8 中查看它时,它似乎才使用我的移动设置。我可以看到它,因为导航是移动导航。我想知道这可能是什么原因。这是网址:http://www.embo-architecten.be。
希望大家帮忙!
【问题讨论】:
标签: css internet-explorer
由于 Internet Explorer 8 不支持媒体查询,因此会显示移动布局(由于 Bootstrap 的移动优先架构)。您可以通过添加一个名为 Respond.js 的 JavaScript polyfill 在 Internet Explorer 8 中添加对媒体查询的支持
您需要在<head> 部分添加类似的内容
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
有关这方面的背景信息,请参阅 Bootstrap 文档中的 Internet Explorer 8 and Respond.js。它的basic template 包括这个,旁边是一个 shim,它在 Internet Explorer 8 中添加了对 html5 元素的支持。
【讨论】: