2

使用

gem 'bootstrap-generators', '~> 2.0'
gem 'simple_form', '~> 2.0'

Bootstrap 样式在 IE9 及以下版本中不存在,但通过http://netrenderer.com/在 IE10 中显示良好。

我的引导生成器.css.scss:

@import "bootstrap-variables";

body {
  padding-top: $navbarHeight + 20px;
  padding-bottom: 40px;
}

.page-header {
  a.btn {
    float: right;
  }

  a.btn + a.btn {
    margin-right: 8px;
  }
}

@import "scss/bootstrap";
@import "scss/responsive";

有什么想法吗?

4

2 回答 2

1

例如,您可能正在使用 IE8 无法处理的 HTML5 元素<section>
尝试将此添加到<head>布局文件的

<!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

如果它渲染正确,那是你的问题。

于 2012-06-14T02:07:54.387 回答
1

原因在此处描述Rails 3.1, assets pipeline and IE 6 & 7 in production mode - 一些 CSS & js 未正确加载

我们不得不拆分 css,现在一切正常。

于 2012-06-27T18:59:09.437 回答