185

HTMLを使用して(写真のような)無限大記号を表示するにはどうすればよいですか?

無限大記号

4

9 に答える 9

340

HTMLエンティティ∞またはを使用します∞

于 2010-02-12T20:30:58.793 に答える
112
于 2010-02-12T20:33:26.060 に答える
27

∞</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.

于 2010-02-12T20:35:31.963 に答える
10

ウィキペディアから:

&infin;
于 2010-02-12T20:31:31.040 に答える
6

このページによると、&infin;です。

于 2010-02-12T20:32:03.537 に答える
6

&#8734;

于 2010-02-12T20:33:41.020 に答える
4

Like ЯegDwight said, you can use the HTML entity &infin; or &#8734;. 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';
}
于 2015-08-20T21:38:08.713 に答える
3

Infinity is a reserved character in HTML. Following are its values in various forms.

  • Hex : 8734
  • Decimal : 221E
  • Entity : &infin;

To use in html code

<p>The html symbol is &#8734; </p>
<p>The html symbol is &#x221E; </p>
<p>The html symbol is &infin; </p>

Reference : HTML Symbols - HTML Infinity Symbol

于 2018-05-29T03:47:20.873 に答える