首页 >web前端 >html教程 >火狐打开本地bootstrap页面,小图标无法正常显示问题_html/css_WEB-ITnose

火狐打开本地bootstrap页面,小图标无法正常显示问题_html/css_WEB-ITnose

WBOY
WBOY原创
2016-06-24 11:48:43998浏览

      场景是,我下了一套bootstrap的页面,当本地用ff打开某一个html的时候,发现页面上的小图片无法正常显示,一开始我一直以为是bootstrap的字体样式问题,后发现同一个页面,在chrome里却能正常显示,后来到处查找一番,终于发现,是ff的设置问题,只要改一下默认设置即可。

       原文链接:http://stackoverflow.com/questions/19085942/boootstrap-glyphicons-firefox-issues

       解决方案如下:
Firefox has a strict setting(this) that prevents your HTML file from accessing your web fonts from folders not on the root. This only happens when you work locally and not from files on a server. You have to change a setting in Firefox to display the glyphicons when you develop locally.

-open "about:config" in your address in firefox

-Then search for "security.fileuri.strict_origin_policy" property and change it from "true" to "false". (ignore quotation marks of course)

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn