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

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

Ascii code for less than or equal to

htmlasciiasciiencoding

提问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 &#x2264. Just place this code in your HTML where you want the symbol to be.

首先,使用HTML实体:要么≤≤&#x2264。只需将此代码放在 HTML 中您希望符号所在的位置即可。

Alternatively, ensure that your html file is utf8encoded, 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 &le;for ( ≤ ) or &ge;( ≥ )

您可以&le;用于 ( ≤ ) 或&ge;( ≥ )

回答by Ibrahim Azhar Armar

according to this documentation.

根据本文档

HTML Entity (decimal)   &#8804;
HTML Entity (hex)   &#x2264;
HTML Entity (named) &le;

回答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

我总是只在 < 和 > 下划线,它们是标准键盘字符。它可能有点笨拙,但它有效,并且可以节省记住数字。
坦率

回答by mpe

That character isn't in the ASCII table. You may want to look into Unicode.

该字符不在 ASCII 表中。您可能需要查看Unicode