用于复选标记的 HTML 实体

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13183982/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 03:39:57  来源:igfitidea点击:

HTML entity for check mark

html

提问by Matteo Pagliazzi

Possible Duplicate:
Tick symbol in HTML/XHTML

可能的重复:
HTML/XHTML 中的刻度符号

Is there an HTML entity for a check mark?

是否有用于复选标记的 HTML 实体?

enter image description here

在此处输入图片说明

I've searched for it in various html entities cheat sheets but didn't find it

我在各种 html 实体备忘单中搜索过,但没有找到

回答by Darren Wainwright

Something like this?

像这样的东西?

if so, type the HTML ✔

如果是,请输入 HTML ✔

And ✓gives a lighter one:

✓给出一个更轻的:

回答by ndp

回答by Dai

HTML and XML entities are just a way of referencing a Unicode code-point in a way that reliably works regardless of the encoding of the actual page, making them useful for using esoteric Unicode characters in a page using 7-bit ASCII or some other encoding scheme, ideally on a one-off basis. They're also used to escape the <, >, "and &characters as these are reserved in SGML.

HTML 和 XML 实体只是引用 Unicode 代码点的一种方式,无论实际页面的编码如何,它们都可以可靠地工作,这使得它们对于在使用 7 位 ASCII 或其他一些编码的页面中使用深奥的 Unicode 字符非常有用计划,最好是一次性的。他们也被用来逃避<>"&因为这些字符是在SGML保留。

Anyway, Unicode has a number of tick/check characters, as per Wikipedia ( http://en.wikipedia.org/wiki/Tick_(check_mark)).

无论如何,根据维基百科(http://en.wikipedia.org/wiki/Tick_(check_mark)),Unicode有许多刻度/检查字符。

Ideally you should save/store your HTML in a Unicode format like UTF-8 or 16, thus obviating the need to use HTML entities to represent a Unicode character. Nonetheless use: &#x2714;✔.

理想情况下,您应该以 UTF-8 或 16 等 Unicode 格式保存/存储 HTML,从而避免使用 HTML 实体来表示 Unicode 字符的需要。尽管如此使用:&#x2714;✔。

&#x2714;

Is using hex notation and is the same as

使用十六进制表示法并且与

$#10004;

(as 2714in base 16 is the same as 10004in base 10)

(因为2714基数 16 与10004基数 10相同)

回答by itsbruce

There is HTML entity &#10003 but it doesn't work in some older browsers.

有 HTML 实体 ✓ 但它在一些较旧的浏览器中不起作用。