我的网站似乎运行良好。只有当我在 IE8 中查看它时,它似乎使用了我的移动设置。能看到是因为导航是手机导航。我想知道这可能是什么原因。这是网址:http://www.embo-architecten.be .
希望大家帮帮忙!
最佳答案
由于 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]-->
参见 Internet Explorer 8 and Respond.js在 Bootstrap 的文档中获取有关这方面的背景信息。它的basic template在 Internet Explorer 8 中添加对 html5 元素的支持的填充程序旁边包含此内容。
关于css - Internet Explorer 8 使用移动设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27600504/