【问题标题】:Why aren't the Bootstrap 3.0.1.1 glyphicons displaying in IE8为什么 IE8 中不显示 Bootstrap 3.0.1.1 字形图标
【发布时间】:2013-11-11 06:16:13
【问题描述】:

我使用 Nuget 下载了最新版本的 Bootstrapversion 3.0.1.1,并在 Visual Studio 2012 ASP.NET MVC 4 应用程序中使用它。

下载后仅将以下文件放在内容目录中:

  • bootstrap-theme.css
  • bootstrap-theme.min.css
  • bootstrap.css
  • bootstrap.min.css

在我的 Scripts 目录中:

  • bootstrap.js
  • bootstrap.min.js

我还包含了Respond.jshtml5shiv.js 文件。

当我在IE8 中运行应用程序时,它似乎找不到我放在视图中的字形图标。字形图标应该在的地方只是看起来像占位符的方块。当我在最新版本的Firefox 中运行应用程序时,它就在那里。我不明白为什么?

有人可以分享一下吗?

【问题讨论】:

    标签: asp.net-mvc asp.net-mvc-4 twitter-bootstrap internet-explorer-8 twitter-bootstrap-3


    【解决方案1】:

    我认为 hanselman 上周写了一篇关于这个的帖子...... http://www.hanselman.com/blog/WhyDoMyFontAwesomeIconsShowUpAsBlankSquares.aspx

    然后你意识到你需要有 class="fa" 以及任何图标的类。

    【讨论】:

      猜你喜欢
      • 2015-01-15
      • 2015-05-30
      • 2017-01-04
      • 2016-01-14
      • 2012-01-19
      • 1970-01-01
      • 2014-08-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多