I have a strange problem in my ASP.NET MVC application: bootstrap glyphicons not shown in IE and Safari,but successfully shown in the Google Chrome and FireFox.

我的ASP.NET MVC应用程序中有一个奇怪的问题:引导程序字形不在IE和Safari中显示,但在Google Chrome和FireFox中成功显示。

I'v checked that in less files I have right path to files with fonts(.eot and other). But it does't work in IE and Safari. When view html and css in browser inspector, I see that class for glyphicon has attribute content that striked, but in Chrome it is not striked. I'v also swith on allow font load in the IE setting but it does't help. I'm using Bootstrap 3.3.6.

我检查过,在较少的文件中,我有正确的文件路径(.eot和其他)。但它在IE和Safari中不起作用。在浏览器检查器中查看html和css时,我看到glyphicon的类具有被攻击的属性内容,但在Chrome中它没有受到攻击。我也开始在IE设置中允许字体加载,但它没有帮助。我正在使用Bootstrap 3.3.6。

I have this issue in the IE 11 and the Edge and the Safari.

我在IE 11和Edge以及Safari中遇到过这个问题。

Please, tell me how to figure it out?

请告诉我如何解决这个问题?

Update.

            <p class="input-group">
                <input name="startDate" type="text" uib-datepicker-popup="{{format}}" ng-model="startDate" is-open="status.startDateOpened" datepicker-options="dateOptions" close-text="Close" />
                <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="openStartDate($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                </span>
            </p>

1 个解决方案

#1


1

After some StackOverflow searching, it seems that this problem has been encountered before. The problem might be involving the HTTP header Cache-Control: no-cache for the font. While this will work fine with HTTP, over HTTPS it causes Internet Explorer to ignore the downloaded font.

经过一些StackOverflow搜索,似乎之前遇到过这个问题。问题可能涉及HTTP标头Cache-Control:字体的无缓存。虽然这适用于HTTP,但通过HTTPS,它会导致Internet Explorer忽略下载的字体。

My best guess is that it's a variation of this behaviour: http://support.microsoft.com/kb/815313

我最好的猜测是,这是此行为的变体:http://support.microsoft.com/kb/815313

So, if you're seeing IE work through each font in the Developer Tools network view, it might be worth checking if you have a Cache-Control header and removing it.

因此,如果您在开发人员工具网络视图中看到IE通过每种字体工作,则可能值得检查您是否具有Cache-Control标头并将其删除。

A reference to another case: Bootstrap (v3.3.4) glyphicons not displayed in IE when refresh page (F5)

对另一种情况的引用:刷新页面(F5)时IE中未显示Bootstrap(v3.3.4)字形

And another, the original possible solution I found: @font-face EOT not loading over HTTPS

另外,我找到了原始可能的解决方案:@ font-face EOT无法通过HTTPS加载

更多相关文章

  1. 安装的Moodle字体在其他浏览器中不起作用
  2. css字体大小在苹果邮件中比gmail (iphone)要小
  3. linux 的终端字体色和背景色的修改方法(三)
  4. (转)linux字体安装
  5. Android TextView设置字体风格
  6. Android如何缩放应用中的字体大小
  7. Android开发笔记——改变字体颜色的三种方法
  8. Android 修改spinner 字体颜色 样式的方法
  9. 如何在Apache POI(java)中读取.docx中的字体大小和字体名称

随机推荐

  1. 答应我,用了这个jupyter插件,别再重复造轮
  2. Python 3.9,来了!
  3. 用了这个jupyter插件,我已经半个月没打开
  4. Jupyter Notebook & Lab快捷键大全
  5. 掌握pandas中的transform
  6. Vaex :突破pandas,快速分析100GB大数据集
  7. 纯Python绘制满满艺术感的山脊地图
  8. 来,一起打卡!
  9. JavaScript中的持续传递风格 [每日前端夜
  10. 【开发者必看】移动应用趋势洞察白皮书-