AngularUI - 兼容的浏览器 [英] AngularUI - Compatible browsers

查看:27
本文介绍了AngularUI - 兼容的浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试打开 AngularUI 网站 (http://angular-ui.github.io/) 在 IE8 中.UI 未在 IE8 中正确呈现(在最新版本的 chrome/firefox 中工作正常).这让我搜索了 AngularUI 模块的浏览器兼容性.小组中的讨论指出 AngularUI-bootstrap 模块不支持 IE8( https://groups.google.com/forum/#!topic/angular-ui/8L0739rxdes)但是可以找到下面列出的其他模块的信息.用户界面工具UI 模块NG-Grid用户界面路由器所以问题是,这些模块是否与 ie8 兼容.如果是,未来是否有继续支持的愿望.

I tried to open the AngularUI website (http://angular-ui.github.io/) in IE8. UI was not rendered properly in IE8(working fine in latest version of chrome/firefox). This led me to search browser compatability of AngularUI modules. A discussion in the groups pointed me that AngularUI-bootstrap module does not support IE8( https://groups.google.com/forum/#!topic/angular-ui/8L0739rxdes) But could find the info for other modules listed below. UI-Utils UI-Modules NG-Grid UI-Router So the question is, Are these modules compatible with ie8. If yes, is there a desire to continue support in the future.

推荐答案

许多 AngularUI 指令在 IE8 中都可以正常工作,前提是您不使用自定义元素选项配置它们.问题在于 IE8 会忽略任何非标准 HTML 的元素,这显然使这种方法无法实现.

Many of the AngularUI directives do work correctly in IE8 provided you don't configure them using the custom element option. The problem is that IE8 ignores any elements that aren't standard HTML, which obviously blows that approach out of the water.

改用属性方法.例如,而不是:

Use attribute approach instead. For example, instead of:

<tabset>
    <tab ng-repeat="tab in tabs" heading="{{tab.name}}"></tab>
</tabset>

使用:

<ul tabset>
    <li tab ng-repeat="tab in tabs" heading="{{tab.name}}"></li>
</ul>

这篇关于AngularUI - 兼容的浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆