我偶然发现了 Bootstrap Glyphicons 无法与 Firefox 配合使用但与其他浏览器配合正常工作的问题。
Q:How to make Glyphicons from Bootstrap 3.1.1 work with firefox?
(我自己回答了这个问题,这是原始帖子的一部分)
当我寻找可能导致此问题的信息时,只有几篇文章没有解决我的问题,主要关注旧版本,而不是解释所需的修复。
经过一段时间后,我发现只需从<link href='www.domain.co.uk'>
to the bootstrap.css
字形图标也开始在 Firefox 中运行。
这似乎是由于以下错误造成的:Cross-Origin Request Blocked:
我认为也许这值得分享,因为似乎有相当多的人与我有类似的问题,但没有任何文章涵盖这种修复方法。
Change
<link href="http://www.domain.co.uk/css/bootstrap.css" rel="stylesheet">
to
This <link href="http://domain.co.uk/css/bootstrap.css" rel="stylesheet">
问题是出现以下错误:Cross-Origin Request Blocked:
我通过删除解决了这个问题www
来自<link href='http://www.domain.co.uk'>
Change <link href="http://www.domain.co.uk/css/bootstrap.css" rel="stylesheet">
to
This <link href="http://domain.co.uk/css/bootstrap.css" rel="stylesheet">
这使得 Glyphicons 可以在包括 Firefox 在内的所有浏览器上运行。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)