【问题标题】:CSS stylesheets are not loaded in internet explorer 9Internet Explorer 9 中未加载 CSS 样式表
【发布时间】:2012-12-10 01:53:32
【问题描述】:

我的环境是 Rails 3.2.8,我所有的样式表都可以在.css.scss 格式的 app/assets/stylesheets 中找到。我还在为我的应用程序使用 Bootstrap-sass。

在 Internet Explorer 中似乎根本没有加载样式表,经过一番研究,我还没有找到解决方案。

我提供一个css文件,例如:

文件: posts.css.scss

$myFontFamily: 'Nanum Gothic', sans-serif;
$baseFontFamily: $myFontFamily;

@import 'bootstrap';

body {
    background-color: #000000;
    color: #FFF;
}

在 IE9 中,字体、正文背景、字体颜色完全不受此样式表的影响。任何帮助将不胜感激。

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-3 internet-explorer stylesheet


    【解决方案1】:

    我认为您不需要 css,只需输入 posts.scss,我假设所有 config.assets 也都设置正确。也就是说,你没有惹到他们。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-12-05
      • 1970-01-01
      • 1970-01-01
      • 2012-04-01
      • 2012-08-27
      • 1970-01-01
      • 2017-12-18
      相关资源
      最近更新 更多