gpt4 book ai didi

twitter-bootstrap-3 - 如何防止 Bootstrap glyphicon 渲染为 emoji (Opera, FF)?

转载 作者:行者123 更新时间:2023-12-04 08:55:13 25 4
gpt4 key购买 nike

我想知道如何防止从 bootstrap 的字形中显示表情符号?

这个

<span class="glyphicon glyphicon-tent"></span>

渲染到这个(歌剧,moz)

enter image description here

我偶然发现了这个:
https://apple.stackexchange.com/questions/41228/why-do-emoji-like-appear-when-i-use-safari-but-not-chrome

Unicode 在这里:

http://www.fileformat.info/info/unicode/char/26fa/index.htm

解决方案:将您的 Bootstrap 更新到最新版本。

最佳答案

避免此类问题的更好选择是使用 font-awesome 而不是 twitter bootstrap glyphicons,作为奖励,您可以获得比 g​​lyphicons 提供的更多的图标集。但是,如果您仍然想使用 bootstrap 字形,最好复制该字形的 unicode(因为字形在内部使用 unicode)并附加在 this 中给出的代码回答。

关于twitter-bootstrap-3 - 如何防止 Bootstrap glyphicon 渲染为 emoji (Opera, FF)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30596607/

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