gpt4 book ai didi

css - Bootstrap 图标不显示,在 IE 中禁用字体

转载 作者:行者123 更新时间:2023-12-02 04:48:24 27 4
gpt4 key购买 nike

我的客户端有 IE8 或 IE11,有很多安全配置。他们禁用了字体下载选项,这使得 Bootstrap 图标不显示。有没有办法让它们出现?

最佳答案

bootstrap 图标是通过 CSS 导入的,如下所示:

@font-face{
font-family:'Glyphicons Halflings';
src:url(../fonts/glyphicons-halflings-regular.eot);
src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),
url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),
url(../fonts/glyphicons-halflings-regular.woff) format('woff'),
url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),
url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}

相反,您可以使用 URI Generator将文件转换为数据字符串值。

这将允许您使用字体图标而无需导入文件

关于css - Bootstrap 图标不显示,在 IE 中禁用字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30913934/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com