Bootstrap 3 Glyphicons在Windows Mobile中不起作用 [英] Bootstrap 3 Glyphicons are not working in window mobile

查看:56
本文介绍了Bootstrap 3 Glyphicons在Windows Mobile中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Bootstrap 3 Glyphicons在窗口移动设备中不起作用.他们正在其他设备上工作(期望窗口电话)

Bootstrap 3 Glyphicons are not working in window mobile. They are working in other devices(Expect window phone)

推荐答案

Mathew Hintzen 所述,最简单的方法是在您的web.config中包含MIME规范.此外,正如他指出的那样,如果您使用样式/脚本的捆绑,这将导致500个内部服务器错误:

As Mathew Hintzen has posted, the easiest way is to include the MIME specification in your web.config. Also, as he pointed out, this will cause 500 Internal Server Errors if you are using the Bundling of styles/scripts:

<configuration>
   ...
   <system.webServer> 
      ...
      <staticContent> 
         ...
         <mimeMap fileExtension=".woff" mimeType="font/x-woff" /> 
      </staticContent> 
   </system.webServer> 
</configuration>

要回答OP的问题并解决500个内部服务器错误,请在设置静态内容之前添加删除"语句:

To answer the OP's question AND to fix the 500 Internal Server errors, include a 'remove' statement before setting the static content:

<configuration> 
   ...
   <system.webServer> 
      ...
      <staticContent> 
         ...
         <remove fileExtension=".woff" />
         <mimeMap fileExtension=".woff" mimeType="font/x-woff" /> 
      </staticContent> 
   </system.webServer> 
</configuration>

这将在Windows Mobile/Internet Explorer Mobile(IE Mobile)上加载字体文件,并且Web服务器将继续向其他浏览器/客户端提供其他捆绑文件.

This will load the font files on Windows Mobile / Internet Explorer Mobile (IE Mobile) AND the web server will continue to serve other bundled files to other browsers/clients.

我希望这会有所帮助.祝您编码愉快!

I hope this helps. Happy Coding!

这篇关于Bootstrap 3 Glyphicons在Windows Mobile中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆