火狐打开本地bootstrap页面,小图标无法正常显示问题_html/css_WEB-ITnose
程序员文章站
2022-04-30 23:51:54
...
场景是,我下了一套bootstrap的页面,当本地用ff打开某一个html的时候,发现页面上的小图片无法正常显示,一开始我一直以为是bootstrap的字体样式问题,后发现同一个页面,在chrome里却能正常显示,后来到处查找一番,终于发现,是ff的设置问题,只要改一下默认设置即可。
原文链接:http://*.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)
原文链接:http://*.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)