【发布时间】:2021-12-22 11:13:15
【问题描述】:
我有这个代码:
<option> 🇩🇪 Deutsch</option>
or
<option> 🇩🇪 Deutsch</option>
我做错了什么?
【问题讨论】:
我有这个代码:
<option> 🇩🇪 Deutsch</option>
or
<option> 🇩🇪 Deutsch</option>
我做错了什么?
【问题讨论】:
遗憾的是,Windows 没有系统 Emoji 字体,其中包含彩色标志连字 (以及来自 Emoji 领域的更多字形)。由于 Chrome 和 Edge 依赖于系统字体,我们看到的是那些简单的字符而不是连字。
Firefox(仍然)嵌入了它自己基于 Twitter(“Twemoji Mozilla”)的漂亮后备表情符号字体来缓解这种情况。因此,让它跨浏览器工作的唯一方法是提供 webfont。
Maxime Euziere 在https://xem.github.io/unicode13/emoji.html 为 Web 使用编译了很好用的 Mozilla 的 Twemoji 字体:
/*
Licenses for TwemojiMozilla.ttf: https://github.com/mozilla/twemoji-colr/blob/master/LICENSE.md#license-for-the-visual-design
Derived from: https://twemoji.twitter.com/
Source: https://xem.github.io/unicode13/emoji.html
*/
@font-face {
font-family: "Twemoji from xem.github.io";
src: url("https://xem.github.io/unicode13/Twemoji.ttf") format("truetype");
unicode-range: U+00A9-E007F;
/* @see https://github.com/mozilla/twemoji-colr/issues/56 */
}
:root {
font-family: "Twemoji from xem.github.io", Segoe UI Emoji, Segoe UI Symbol, Segoe, sans-serif;
}
<p>&#x1F1E9;&#x1F1EA; Deutsch
【讨论】: