HTML 中的 OK 或 ACCEPTED 符号?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9963576/
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
OK or ACCEPTED symbol in HTML?
提问by Alexandru Vlas
Can somebody please help me, I want to put the "OK" symbol throw HTML not as image, by saying "OK" symbol I mean this symbol (http://awesomescreenshot.com/0272k1125) Can somebody help me and tell me what code is this in html please ?
有人可以帮我吗,我想把“OK”符号抛出HTML而不是图像,说“OK”符号我的意思是这个符号(http://awesomescreenshot.com/0272k1125)有人可以帮助我并告诉我什么请问这是在html中的代码吗?
Thanks
谢谢
回答by Cody Gray
There is a Unicode character that looks like a check mark: ?
有一个 Unicode 字符看起来像一个复选标记: ?
To use it in HTML, you'll probably want to escape it. The code looks like this:
要在 HTML 中使用它,您可能想要转义它。代码如下所示:
✓ <!-- in decimal -->
✓ <!-- in hex -->
There is also a "heavier" (bold) version of this same symbol: ?
这个相同符号还有一个“更重”(粗体)版本: ?
Again, the escapes are:
同样,转义是:
✔ <!-- in decimal -->
✔ <!-- in hex -->
But definitely pay attention to the concerns expressed by the other answers regarding the inclusion of this character with the font(s) you're intending to use, and the possibility that the character may not display correctly on client machines.
但一定要注意其他答案所表达的关于将此字符包含在您打算使用的字体中的问题,以及该字符可能无法在客户端计算机上正确显示的可能性。
回答by GergelyPolonkai
As I understand, you want to put the Unicode CHECK MARK (U+2713) symbol on your page. However, I'm not fully sure that this character is implemented in most fonts, so it is possible that the character will not appear on some client browsers.
据我了解,您想在页面上放置 Unicode CHECK MARK (U+2713) 符号。但是,我不完全确定该字符是否在大多数字体中实现,因此该字符可能不会出现在某些客户端浏览器上。
回答by Jukka K. Korpela
If you want to use the CHECK MARK character, it's U+2713. The way to enter it depends on your authoring environment; the character reference ⅳ
can be used instead, but it reduces source legibility.
如果要使用 CHECK MARK 字符,则为 U+2713。输入方式取决于您的创作环境;ⅳ
可以改用字符引用,但会降低源代码的易读性。
The CHECK MARK character is present in many fonts, but not all. Its font supportdoes not include any font that is available in Windows PCs, unless Microsoft Office has been installed. In addition to this primary concern, some browsers may fail to display the character even if it is available in some font; using CSS you can increase the odds.
CHECK MARK 字符存在于许多字体中,但不是全部。它的字体支持不包括 Windows PC 中可用的任何字体,除非已安装 Microsoft Office。除了这个主要问题之外,一些浏览器可能无法显示该字符,即使它以某种字体可用;使用 CSS 你可以增加几率。
The two-letter abbreviation “OK” works much more reliably. Though originally an English abbreviation of obscure origin, it is widely recognized. The CHECK MARK is more questionable, even though people usually know it from web page forms where it appears in checked checkboxes. But it's not really universal; when I was at school, a symbol like CHECK MARK indicated an error, not acceptance.
两个字母的缩写“OK”更可靠。虽然最初是一个起源不明的英文缩写,但它被广泛认可。CHECK MARK 更值得怀疑,尽管人们通常从网页表单中知道它,它出现在选中的复选框中。但它并不是真正通用的。当我在学校时,像 CHECK MARK 这样的符号表示错误,而不是接受。