Html 小于或等于的ASCII码
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12140003/
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
Ascii code for less than or equal to
提问by coolguy
I cant find it on google.
我在谷歌上找不到它。
What is the ASCII code for less than or equal to. I need this ≤
to be outputted in my browser
小于或等于的ASCII码是什么。我需要≤
在我的浏览器中输出这个
回答by Nico Burns
The character ≤
isn't in the ASCII table. However, there are several ways to embed it in HTML.
该字符≤
不在 ASCII 表中。但是,有多种方法可以将其嵌入到 HTML 中。
Firstly, using HTML entities: either ≤
, ≤
, or ≤
. Just place this code in your HTML where you want the ≤
symbol to be.
首先,使用HTML实体:要么≤
,≤
或≤
。只需将此代码放在 HTML 中您希望≤
符号所在的位置即可。
Alternatively, ensure that your html file is utf8
encoded, and include the meta tag <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
in the <head>
of your document. You can then copy and paste the ≤
character directly into your document.
或者,确保您的 html 文件已utf8
编码,并<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
在<head>
您的文档中包含元标记。然后,您可以将该≤
字符直接复制并粘贴到您的文档中。
回答by Nicholas Albion
You can use ≤
for ( ≤ ) or ≥
( ≥ )
您可以≤
用于 ( ≤ ) 或≥
( ≥ )
回答by Ibrahim Azhar Armar
according to this documentation.
根据本文档。
HTML Entity (decimal) ≤
HTML Entity (hex) ≤
HTML Entity (named) ≤
回答by Sam Fry
ALT-243 = ≤
ALT-242 = ≥
ALT-243 = ≤
ALT-242 = ≥
ASCII is very handy.
ASCII 非常方便。
回答by Frank
I always just underline < and > which are standard keyboard characters. It may be a little clugey, but it works, and it saves remembering numbers.
Frank
我总是只在 < 和 > 下划线,它们是标准键盘字符。它可能有点笨拙,但它有效,并且可以节省记住数字。
坦率