Html 如何在html中引入乘法和除法符号?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4460095/
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 05:44:41  来源:igfitidea点击:

How to bring multiplication and division symbol in html?

htmlxhtml

提问by Mohan Ram

I need to bring multiplication and division symbol in html codes.How to do that

我需要在 html 代码中引入乘法和除法符号。如何做到这一点

回答by Jonny Buchanan

Use the appropriate entities.

使用适当的实体

×for ×

×为了 ×

÷for ÷

÷为了 ÷

回答by James Wiseman

Do you mean * and / or ÷ and × ? The codes for the latter are:

你的意思是 * 和/或 ÷ 和 × ?后者的代码是:

÷ or ÷
× or ×

http://www.visibone.com/products/ebk2-3_850.jpg

http://www.visibone.com/products/ebk2-3_850.jpg

回答by Bojangles

The extended ASCII code for the divide symbol is 247; try putting it into your page like this: ÷. As for the multiply symbol, just use the xcharacter.

除法符号的扩展 ASCII 码是247; 尝试把它变成你的网页是这样的:÷。至于乘法符号,只需使用x字符即可。

James

詹姆士

回答by Garry

Try doing this:

尝试这样做:

<div id="multiply">&times; or &#215</div>
<div id="divide">&divide; or &#247</div>

Result:

结果:

× 或 × ÷ 或 ÷