如何在Edge中阻止表情符号渲染 [英] How to prevent emojis rendering in Edge

查看:184
本文介绍了如何在Edge中阻止表情符号渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用HTML实体✔ (✔)以各种颜色表示用户选择了哪些选项.

I am using HTML entity ✔ (✔) in various colors to indicate what options are chosen by a user.

事实证明,MS Edge将一些UTF-8字符转换为表情符号,这使我的设计难以理解-我无法再使用CSS更改它们的颜色.

As it turns out, MS Edge turns some UTF-8 characters into emojis which make my design unreadable - I can no longer change their colors with CSS.

我在另一个问题中发现替换✔与✔︎ (✔︎)应该可以解决问题,但似乎无法与Edge配合使用.

I found out in another question that replacing ✔ with ✔︎ (✔︎) should do the trick, but it does not seem to be working with Edge.

还有其他方法可以做到吗,是不可能的,还是我缺少了什么?

Is there another way to do it, is it impossible, or am I missing something?

推荐答案

尝试将font-family: "Segoe UI Symbol";添加到包含HTML实体的css中.

Try adding font-family: "Segoe UI Symbol"; to your css containing the HTML entity.

例如:

span {
  font-family: "Segoe UI Symbol";
}

<span>&#10004;&#xFE0E;</span>

从那里您将能够设置HTML实体的样式.我已经在Edge上进行了测试,并确认它可以正常工作.

From there you will be able to style your HTML entity. I've tested this on Edge and have confirmed that it works.

下面的线程解决了您遇到的这个问题:

The thread below addresses this issue you are having:

这篇关于如何在Edge中阻止表情符号渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆