css - Internet Explorer 8 使用移动设置

标签 css internet-explorer

我的网站似乎运行良好。只有当我在 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/

相关文章:

asp.net - IE8 中 AJAX 的意外缓存结果

asp.net - IE兼容模式问题

html - 随机 SVG 图标无法加载

html - 为什么要为选项卡使用内联列表项?

CSS 线性渐变和 Canvas 线性渐变与不透明度设置不同

jQuery - Internet Explorer 内存泄漏

javascript - 使用 javascript : FF vs IE 禁用按钮

html - CSS 在悬停 DIV 时更改超链接颜色

html - 弄清楚 % 混淆的网格布局

css - 不能使 div 在 IE8 中看起来一样吗?