How to prevent emojis rendering in Edge

99封情书 提交于 2019-12-04 03:31:34

问题


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

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.

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?


回答1:


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

For example:

span {
  font-family: "Segoe UI Symbol";
}
<span>&#10004;&#xFE0E;</span>

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:

  • https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11635143/


来源:https://stackoverflow.com/questions/45883392/how-to-prevent-emojis-rendering-in-edge

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!