【发布时间】:2012-11-26 13:12:53
【问题描述】:
我在rails 中有一个应用程序。在我的应用中,有部分使用的地方。
每个部分使用,自带CSS
问题出现在我们亲爱的Internet Explorer 7 和Internet Explorer 8 上,它们不允许我在外部标题中插入CSS。我尝试通过以下方式做到这一点:
css=stylesheet_link_tag 'my_partial'
$(CSS).appendTo("head");
它在 Chrome、Safari 和 Firefox 中运行良好。但是,我无法在 Internet Explorer 中加载 CSS。有人可以告诉我如何解决这个问题吗?
【问题讨论】:
-
你应该提供更多的上下文。
-
我正在应用'code'在 partial 是: =stylesheet_link_tag 'user_currents' #currents .content_scroll .title
标签: css ruby-on-rails internet-explorer internet-explorer-8 internet-explorer-7