use*_*228 0 css internet-explorer twitter-bootstrap twitter-bootstrap-3
我已经开发了一个使用Asp.Net Mvc 4和bootstrap 3 for UI的应用程序,一切都在谷歌Chrome和Mozilla Firefox上正常运行但引导程序3不支持IE 7和IE 8.
如何处理bootstrap 3以使其支持IE 7和IE 8?
Bootstrap 3正式取消了对IE7的支持,但如果您确实需要支持这样的旧浏览器(例如在企业环境中),您可以尝试使用polyfill库,例如:https://github.com/coliff/bootstrap-ie7.
目前支持IE8(但将在Bootstrap v4中删除).为了让IE8正常工作,您需要将response.js添加到您的应用中.
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5077 次 |
| 最近记录: |