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

54 篇文章 0 订阅
      场景是,我下了一套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)




如果出现:Content Security Policy: 页面设置阻止读取xxxxx

则需要在about:config中,设置security.csp.enable为false,然后重新刷新浏览器

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值