Rumah > hujung hadapan web > html tutorial > 火狐打开本地bootstrap页面,小图标无法正常显示问题_html/css_WEB-ITnose

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Lepaskan: 2016-06-24 11:48:43
asal
1038 orang telah melayarinya

      场景是,我下了一套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)

Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan