HTMLを使用して(写真のような)無限大記号を表示するにはどうすればよいですか?
9 に答える
HTMLエンティティ∞
またはを使用します∞
。
∞</p>
This does not require a HTML entity if you are using a modern encoding (such as UTF-8). And if you're not already, you probably should be.
ウィキペディアから:
∞
このページによると、∞
です。
∞ ∞
Like ЯegDwight said, you can use the HTML entity &infin
; or ∞
. A easy source of getting these codes, is to look at this entity list.
You can also use them in CSS, which was what I was looking for, just like font-awesome does. A simple CSS based solution would be to have something like:
.infinity-ico:before {
content: '\221E';
}
Infinity is a reserved character in HTML. Following are its values in various forms.
- Hex : 8734
- Decimal : 221E
- Entity : ∞
To use in html code
<p>The html symbol is ∞ </p>
<p>The html symbol is ∞ </p>
<p>The html symbol is ∞ </p>
Reference : HTML Symbols - HTML Infinity Symbol