简体   繁体   English

在Twitter8中,Twitter Bootstrap和respond.js响应过快

[英]Twitter Bootstrap and respond.js too responsive in IE8

I'm having some issues with testing Twitter Bootstrap v3 in IE8. 我在IE8中测试Twitter Bootstrap v3时遇到了一些问题。 The problem seems to be the layout goes completely responsive in IE8 instead of showing the desktop version on the desktop using Windows 7. 问题似乎是布局在IE8中完全响应,而不是使用Windows 7在桌面上显示桌面版本。

This is the code in my head: 这是我头脑中的代码:

    <!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

I see one of their examples works just fine, so I'm not sure what's going wrong here. 我看到他们的一个例子工作正常,所以我不确定这里出了什么问题。

Respond.js only works with local CSS files unless additional steps are taken. Respond.js仅适用于本地CSS文件,除非采取其他步骤。 I would recommend serving your 'bootstrap.css' file locally as a simple fix. 我建议在本地提供你的'bootstrap.css'文件作为一个简单的修复。

More information can be found at http://getbootstrap.com/getting-started/#browsers 有关更多信息,请访问http://getbootstrap.com/getting-started/#browsers

Thanks! 谢谢! I think that is the issue. 我认为这是问题所在。 I didn't realize you can't use the CDN. 我没有意识到你不能使用CDN。

I just found this thread as well that goes over several things: IE8 issue with Twitter Bootstrap 3 我刚刚发现这个帖子也可以解决几个问题: IE8问题与Twitter Bootstrap 3

I'll go through and I'm sure that and some combination of these items should do the trick. 我会通过,我确信这些项目的某些组合应该可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM