html - Megamenu 下拉菜单在 IE8 或更低版本的 IE 中不起作用

标签 html css twitter-bootstrap megamenu

嘿,我正在使用基于这个的 megamenu http://geedmo.github.io/yamm/而且我无法使下拉菜单适用于 IE8。

最佳答案

Internet Explorer 8 和 9 仅支持 Bootstrap 使用的一些 CSS3 属性和 HTML5 元素(以及相关联的 Yamm)。Internet Explorer 8 需要使用 Respond.js启用媒体查询支持。有关于browser support on the Bootstrap site的信息.我已经成功获得了BootstrapYamm在 IE8 中工作但需要添加 respond.js 和 html5 shim hack开始工作。

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
    <script src="/js/html5shiv.js"></script>
    <script src="/js/respond.js"></script>
<![endif]-->

Internet Explorer 8 and Respond.js

Beware of the following caveats when using Respond.js in your development and production environments for Internet Explorer 8. Respond.js and cross-domain CSS

Using Respond.js with CSS hosted on a different (sub)domain (for example, on a CDN) requires some additional setup. See the Respond.js docs for details. Respond.js and file://

Due to browser security rules, Respond.js doesn't work with pages viewed via the file:// protocol (like when opening a local HTML file). To test responsive features in IE8, view your pages over HTTP(S). See the Respond.js docs for details. Respond.js and @import

Respond.js doesn't work with CSS that's referenced via @import. In particular, some Drupal configurations are known to use @import. See the Respond.js docs for details. Internet Explorer 8 and box-sizing

IE8 does not fully support box-sizing: border-box; when combined with min-width, max-width, min-height, or max-height. For that reason, as of v3.0.1, we no longer use max-width on .containers.

关于html - Megamenu 下拉菜单在 IE8 或更低版本的 IE 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18892060/

相关文章:

c# - HTML 敏捷包 - 解析表

javascript - jQuery : How to use percentage width of one element as a value to animate another element, 并确保即使在调整窗口大小时它也能正常工作?

css - 位置固定的父 div 的子元素中的 scroll 属性

css - Bootstrap scrollspy 不工作根本不突出显示

HTML/CSS - 图像行居中

css - Django: Bootstrap CDN 或从本地服务器加载 Bootstrap 文件?

javascript - 如何将 ID 添加到被选中的 select > option 元素

php - SQL将我的输入日期更改为0000-00-00,将时间更改为00:00:17

jquery - 主动 anchor 导航

html - 如何将多种背景颜色应用于一个div