溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

HTML和CSS有哪些特殊字符

發(fā)布時(shí)間:2023-01-05 09:17:27 來源:億速云 閱讀:94 作者:iii 欄目:開發(fā)技術(shù)

這篇文章主要介紹“HTML和CSS有哪些特殊字符”,在日常操作中,相信很多人在HTML和CSS有哪些特殊字符問題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”HTML和CSS有哪些特殊字符”的疑惑有所幫助!接下來,請(qǐng)跟著小編一起來學(xué)習(xí)吧!

簡(jiǎn)單的介紹一下其使用方法:

1、這些字符屬于unicode字符集,你的文檔需要聲明為”utf-8“

2、列表符號(hào)后面有兩列編號(hào),第一列編號(hào)用于HTML文檔中,需要在編號(hào)前面加上“&#”符號(hào),比如說“向左箭頭”符號(hào)對(duì)應(yīng)的HTML編號(hào)是:“8672”,那么在文檔中需要寫成“&#8672”;第二列編號(hào)用于CSS文檔中,需要在編號(hào)前面加上反斜杠“”進(jìn)行轉(zhuǎn)義,比如說“向左箭頭”符號(hào)對(duì)應(yīng)的CSS編號(hào)是:“21E0”,那么在文檔中需要寫成“21E0”;同時(shí)第二列也可以用于JavaScript文檔中,需要在編號(hào)前面加上“u”來進(jìn)行轉(zhuǎn)義,比如說“向左箭頭”符號(hào),在JavaScript文檔中,我們就要寫成“u21E0”.

使用的方法很簡(jiǎn)單,但要用好,我們還是需要注意一些細(xì)節(jié)上的要求:

1、有的字符在不同的瀏覽器下表現(xiàn)不太一樣,比如“小雪人”在Firefox和Chrome下不太一樣;

2、有的字符在某個(gè)瀏覽器下不會(huì)顯示;

3、為了不造成損失,使用字符編碼來代替某些符號(hào)時(shí),請(qǐng)注意各個(gè)瀏覽器進(jìn)行測(cè)試;

4、移動(dòng)端對(duì)此支持度較差,特別是在Window phone下和UC瀏覽下器,直接無法顯示。

?  箭頭類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#8672u21E021E0?&#8674u21E221E2
?&#8673u21E121E1?&#8675u21E321E3
?&#8606u219E219E?&#8608u21A021A0
?&#8607u219F219F?&#8609u21A121A1
&#8592u21902190&#8594u21922192
&#8593u21912191&#8595u21932193
?&#8596u21942194?&#8597u21952195
?&#8644u21C421C4?&#8645u21C521C5
?&#8610u21A221A2?&#8611u21A321A3
?&#8670u21DE21DE?&#8671u21DF21DF
?&#8619u21AB21AB?&#8620u21AC21AC
?&#8668u21DC21DC?&#8669u21DD21DD
?&#8602u219A219A?&#8603u219B219B
?&#8622u21AE21AE?&#8621u21AD21AD
?&#8678u21E621E6?&#8680u21E821E8
?&#8679u21E721E7?&#8681u21E921E9
&#9650u25B225B2?&#9658u25BA25BA
&#9660u25BC25BC?&#9668u25C425C4
?&#10132u27942794?&#10137u27992799
?&#10152u27A827A8?&#10162u27B227B2
?&#10140u279C279C?&#10142u279E279E
?&#10143u279F279F?&#10144u27A027A0
?&#10148u27A427A4?&#10149u27A527A5
?&#10150u27A627A6?&#10151u27A727A7
?&#10165u27B527B5?&#10168u27B827B8
?&#10172u27BC27BC?&#10173u27BD27BD
?&#10170u27BA27BA?&#10163u27B327B3
?&#8631u21B721B7?&#8630u21B621B6
?&#8635u21BB21BB?&#8634u21BA21BA
?&#8629u21B521B5?&#8623u21AF21AF
?&#10174u27BE27BE



?  基本形狀類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#10084u27642764?&#9992u27082708
&#9733u26052605?&#10022u27262726
?&#9728u26002600&#9670u25C625C6
?&#9672u25C825C8?&#9635u25A325A3
?&#9787u263B263B?&#9786u263A263A
?&#9785u26392639?&#9993u27092709
?&#9742u260E260E?&#9743u260F260F
?&#9990u27062706?&#65533uFFFDFFFD
?&#9729u26012601?&#9730u26022602
?&#10052u27442744?&#9731u26032603
?&#10056u27482748?&#10047u273F273F
?&#10048u27402740?&#10049u27412741
?&#9752u26182618?&#10086u27662766
?&#9749u97499749?&#10050u27422742
?&#9765u26252625?&#9774u262E262E
?&#9775u262F262F?&#9770u262A262A
?&#9764u26242624?&#9988u27042704
?&#9986u27022702?&#9784u26382638
?&#9875u26932693?&#9763u26232623
?&#9888u26A026A0?&#9889u26A126A1
?&#9762u26222622?&#9851u267B267B
?&#9855u267F267F?&#9760u26202620

¥  貨幣類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
$&#36u0024?024&#162u00A2?0A2
&#163u00A3?0A3¤&#164u00A4?0A4
&#8364u20AC20AC&#165u00A5?0A5
?&#8369u20B120B1?&#8377u20B920B9

?  數(shù)學(xué)類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#189u00BD?0BD?&#188u00BC?0BC
?&#190u00BE?0BE?&#8531u21532153
?&#8532u21542154?&#8539u215B215B
?&#8540u215C215C?&#8541u215D215D
&#8240u20302030%&#37u0025?025
<&#60u003C?03C>&#62u003E?03E

?  音樂符號(hào)類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#9833u26692669?&#9834u266A266A
?&#9835u266B266B?&#9836u266C266C
?&#9837u266D266D?&#9839u266F266F

?  對(duì)錯(cuò)號(hào)

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS

&#160u00A0?0A0?&#9744u26102610
?&#9745u26112611?&#9746u26122612
?&#10003u27132713?&#10004u27142714
?&#10005u1000510005?&#10006u27162716
?&#10007u27172717?&#10008u27182718

★  全都是星星

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
&#9733u26052605?&#10029u272D272D
?&#10030u272E272E&#9734u26062606
?&#10026u272A272A?&#10017u27212721
?&#10031u272F272F?&#10037u27352735
?&#10038u27362736?&#10040u27382738
?&#10041u27392739?&#10042u273A273A
?&#10033u27312731?&#10034u27322732
?&#10036u27342734?&#10035u27332733
?&#10043u273B273B?&#10045u273D273D
?&#10059u274B274B?&#10054u27462746
?&#10052u27442744?&#10053u27452745

?  星座類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#9800u26482648?&#9801u26492649
?&#9802u264A264A?&#9803u264B264B
?&#9804u264C264C?&#9805u264D264D
?&#9806u264E264E?&#9807u264F264F
?&#9808u26502650?&#9809u26512651
?&#9810u26522652?&#9811u26532653

?  國(guó)際象棋類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#9818u265A265A?&#9819u265B265B
?&#9820u265C265C?&#9821u265D265D
?&#9822u265E265E?&#9823u265F265F
?&#9812u26542654?&#9813u26552655
?&#9814u26562656?&#9815u26572657
?&#9816u26582658?&#9817u26592659

?  撲克牌類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#9824u26602660?&#9827u26632663
?&#9829u26652665?&#9830u26662666
?&#9828u26642664?&#9831u26672667
?&#9825u26612661?&#9826u26622662

Ω  希臘字母

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
Α&#913u0391?391Β&#914u0392?392
Γ&#915u0393?393Δ&#916u0394?394
Ε&#917u0395?395Ζ&#918u0396?396
Η&#919u0397?397Θ&#920u0398?398
Ι&#921u0399?399Κ&#922u039A?39A
Λ&#923u039B?39BΜ&#924u039C?39C
Ν&#925u039D?39DΞ&#926u039E?39E
Ο&#927u039F?39FΠ&#928u03A0?3A0
Ρ&#929u03A1?3A1Σ&#931u03A3?3A3
Τ&#932u03A4?3A4Υ&#933u03A5?3A5
Φ&#934u03A6?3A6Χ&#935u03A7?3A7
Ψ&#936u03A8?3A8Ω&#937u03A9?3A9

?  十字

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#9768u26282628?&#9769u26292629
?&#10013u271D271D?&#10014u271E271E
?&#10015u271F271F?&#10016u27202720
?&#10010u271A271A?&#8224u20202020
?&#10018u27222722?&#10020u27242724
?&#10019u27232723?&#10021u27252725

?  法律符號(hào)

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#174u00AE?0AE?&#169u00A9?0A9
?&#8471u21172117?&#153u0099?099
?&#8480u21202120



@  標(biāo)點(diǎn)和符號(hào)

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#171u00AB?0AB?&#187u00BB?0BB
?&#139u008B?08B?&#155u009B?09B
&#8220u201C201C&#8221u201D201D
&#8216u20182018&#8217u20192019
?&#8226u20222022?&#9702u25E625E6
?&#161u00A1?0A1?&#191u00BF?0BF
&#8453u21052105&#8470u21162116
&&#38u0026?026@&#64u0040?040
?&#8478u211E211E&#8451u21032103
&#8457u21092109°&#176u00B0?0B0
|&#124u007C?07C|&#166u00A6?0A6
&#8211u20132013&#8212u20142014
&#8230u20262026?&#182u00B6?0B6
&#8764u223C223C&#8800u22602260

總結(jié)歸類:

1.特色的

?&copy;?版權(quán)標(biāo)志
|
|豎線,常用作菜單或?qū)Ш街械姆指舴?/td>
·&middot;·圓點(diǎn),有時(shí)被用來作為菜單分隔符
&uarr;上箭頭,常用作網(wǎng)頁(yè)“返回頁(yè)面頂部”標(biāo)識(shí)
&euro;歐元標(biāo)識(shí)
2&sup2;2上標(biāo)2,數(shù)學(xué)中的平方,在數(shù)字處理中常用到,例如:10002
?&frac12;?二分之一
?&hearts;?心型,用來表達(dá)你的心

2常用的


&nbsp;
空格
&&amp;&and符號(hào),與
&quot;引號(hào)
?&copy;?版權(quán)標(biāo)志
?&reg;?注冊(cè)標(biāo)志
?&trade;?商標(biāo)標(biāo)志
&ldquo;左雙引號(hào)
&rdquo;右雙引號(hào)
&lsquo;做單引號(hào)
&rsquo;右單引號(hào)
?&laquo;?左三角雙引號(hào)
?&raquo;?右三角雙引號(hào)
?&lsaquo;?左三角單引號(hào)
?&rsaquo;?右三角單引號(hào)
§&sect;§章節(jié)標(biāo)志
?&para;?段落標(biāo)志
?&bull;?列表圓點(diǎn)(大)
·&middot;·列表圓點(diǎn)(中)
&hellip;省略號(hào)
|
|豎線
|&brvbar;|斷的豎線
&ndash;短破折號(hào)
&mdash;長(zhǎng)破折號(hào)

3.貨幣類

¤&curren;¤一般貨幣符號(hào)
$
$美元符號(hào)
&cent;
&pound;英鎊
&yen;日元
&euro;歐元

4 數(shù)學(xué)類

<&lt;<小于號(hào)
>&gt;>大于號(hào)
&le;小于等于號(hào)
&ge;大于等于號(hào)
×&times;×乘號(hào)
÷&pide;÷除號(hào)
?&minus;?減號(hào)
±&plusmn;±加/減 號(hào)
&ne;不等于號(hào)
1&sup1;1上標(biāo)1
2&sup2;2上標(biāo)2
3&sup3;3上標(biāo)3
?&frac12;?二分之一
?&frac14;?四分之一
?&frac34;?四分之三
&permil;千分率
°&deg;°
&radic;平方根
&infin;無限大

5.方向類

&larr;左箭頭
&uarr;上箭頭
&rarr;右箭頭
&darr;下箭頭
?&harr;?左右箭頭
?&crarr;?回車箭頭
?&lceil;?左上限
?&rceil;?右上限
?&lfloor;?左下限
?&rfloor;?右下限

6 其它

?&spades;?黑桃
?&clubs;?梅花
?&hearts;?紅桃,心
?&diams;?方塊牌
?&loz;?菱形
?&dagger;?匕首
?&Dagger;?雙劍號(hào)
?&iexcl;?反向感嘆號(hào)
?&iquest;?反向問號(hào)

?  箭頭類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#8672u21E021E0?&#8674u21E221E2
?&#8673u21E121E1?&#8675u21E321E3
?&#8606u219E219E?&#8608u21A021A0
?&#8607u219F219F?&#8609u21A121A1
&#8592u21902190&#8594u21922192
&#8593u21912191&#8595u21932193
?&#8596u21942194?&#8597u21952195
?&#8644u21C421C4?&#8645u21C521C5
?&#8610u21A221A2?&#8611u21A321A3
?&#8670u21DE21DE?&#8671u21DF21DF
?&#8619u21AB21AB?&#8620u21AC21AC
?&#8668u21DC21DC?&#8669u21DD21DD
?&#8602u219A219A?&#8603u219B219B
?&#8622u21AE21AE?&#8621u21AD21AD
?&#8678u21E621E6?&#8680u21E821E8
?&#8679u21E721E7?&#8681u21E921E9
&#9650u25B225B2?&#9658u25BA25BA
&#9660u25BC25BC?&#9668u25C425C4
?&#10132u27942794?&#10137u27992799
?&#10152u27A827A8?&#10162u27B227B2
?&#10140u279C279C?&#10142u279E279E
?&#10143u279F279F?&#10144u27A027A0
?&#10148u27A427A4?&#10149u27A527A5
?&#10150u27A627A6?&#10151u27A727A7
?&#10165u27B527B5?&#10168u27B827B8
?&#10172u27BC27BC?&#10173u27BD27BD
?&#10170u27BA27BA?&#10163u27B327B3
?&#8631u21B721B7?&#8630u21B621B6
?&#8635u21BB21BB?&#8634u21BA21BA
?&#8629u21B521B5?&#8623u21AF21AF
?&#10174u27BE27BE



?  基本形狀類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#10084u27642764?&#9992u27082708
&#9733u26052605?&#10022u27262726
?&#9728u26002600&#9670u25C625C6
?&#9672u25C825C8?&#9635u25A325A3
?&#9787u263B263B?&#9786u263A263A
?&#9785u26392639?&#9993u27092709
?&#9742u260E260E?&#9743u260F260F
?&#9990u27062706?&#65533uFFFDFFFD
?&#9729u26012601?&#9730u26022602
?&#10052u27442744?&#9731u26032603
?&#10056u27482748?&#10047u273F273F
?&#10048u27402740?&#10049u27412741
?&#9752u26182618?&#10086u27662766
?&#9749u97499749?&#10050u27422742
?&#9765u26252625?&#9774u262E262E
?&#9775u262F262F?&#9770u262A262A
?&#9764u26242624?&#9988u27042704
?&#9986u27022702?&#9784u26382638
?&#9875u26932693?&#9763u26232623
?&#9888u26A026A0?&#9889u26A126A1
?&#9762u26222622?&#9851u267B267B
?&#9855u267F267F?&#9760u26202620

¥  貨幣類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
$&#36u0024?024&#162u00A2?0A2
&#163u00A3?0A3¤&#164u00A4?0A4
&#8364u20AC20AC&#165u00A5?0A5
?&#8369u20B120B1?&#8377u20B920B9

?  數(shù)學(xué)類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#189u00BD?0BD?&#188u00BC?0BC
?&#190u00BE?0BE?&#8531u21532153
?&#8532u21542154?&#8539u215B215B
?&#8540u215C215C?&#8541u215D215D
&#8240u20302030%&#37u0025?025
<&#60u003C?03C>&#62u003E?03E

?  音樂符號(hào)類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#9833u26692669?&#9834u266A266A
?&#9835u266B266B?&#9836u266C266C
?&#9837u266D266D?&#9839u266F266F

?  對(duì)錯(cuò)號(hào)

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS

&#160u00A0?0A0?&#9744u26102610
?&#9745u26112611?&#9746u26122612
?&#10003u27132713?&#10004u27142714
?&#10005u1000510005?&#10006u27162716
?&#10007u27172717?&#10008u27182718

★  全都是星星

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
&#9733u26052605?&#10029u272D272D
?&#10030u272E272E&#9734u26062606
?&#10026u272A272A?&#10017u27212721
?&#10031u272F272F?&#10037u27352735
?&#10038u27362736?&#10040u27382738
?&#10041u27392739?&#10042u273A273A
?&#10033u27312731?&#10034u27322732
?&#10036u27342734?&#10035u27332733
?&#10043u273B273B?&#10045u273D273D
?&#10059u274B274B?&#10054u27462746
?&#10052u27442744?&#10053u27452745

?  星座類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#9800u26482648?&#9801u26492649
?&#9802u264A264A?&#9803u264B264B
?&#9804u264C264C?&#9805u264D264D
?&#9806u264E264E?&#9807u264F264F
?&#9808u26502650?&#9809u26512651
?&#9810u26522652?&#9811u26532653

?  國(guó)際象棋類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#9818u265A265A?&#9819u265B265B
?&#9820u265C265C?&#9821u265D265D
?&#9822u265E265E?&#9823u265F265F
?&#9812u26542654?&#9813u26552655
?&#9814u26562656?&#9815u26572657
?&#9816u26582658?&#9817u26592659

?  撲克牌類

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#9824u26602660?&#9827u26632663
?&#9829u26652665?&#9830u26662666
?&#9828u26642664?&#9831u26672667
?&#9825u26612661?&#9826u26622662

Ω  希臘字母

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
Α&#913u0391?391Β&#914u0392?392
Γ&#915u0393?393Δ&#916u0394?394
Ε&#917u0395?395Ζ&#918u0396?396
Η&#919u0397?397Θ&#920u0398?398
Ι&#921u0399?399Κ&#922u039A?39A
Λ&#923u039B?39BΜ&#924u039C?39C
Ν&#925u039D?39DΞ&#926u039E?39E
Ο&#927u039F?39FΠ&#928u03A0?3A0
Ρ&#929u03A1?3A1Σ&#931u03A3?3A3
Τ&#932u03A4?3A4Υ&#933u03A5?3A5
Φ&#934u03A6?3A6Χ&#935u03A7?3A7
Ψ&#936u03A8?3A8Ω&#937u03A9?3A9

?  十字

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#9768u26282628?&#9769u26292629
?&#10013u271D271D?&#10014u271E271E
?&#10015u271F271F?&#10016u27202720
?&#10010u271A271A?&#8224u20202020
?&#10018u27222722?&#10020u27242724
?&#10019u27232723?&#10021u27252725

?  法律符號(hào)

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#174u00AE?0AE?&#169u00A9?0A9
?&#8471u21172117?&#153u0099?099
?&#8480u21202120



@  標(biāo)點(diǎn)和符號(hào)

符號(hào)UNICODE符號(hào)UNICODE
HTMLJSCSSHTMLJSCSS
?&#171u00AB?0AB?&#187u00BB?0BB
?&#139u008B?08B?&#155u009B?09B
&#8220u201C201C&#8221u201D201D
&#8216u20182018&#8217u20192019
?&#8226u20222022?&#9702u25E625E6
?&#161u00A1?0A1?&#191u00BF?0BF
&#8453u21052105&#8470u21162116
&&#38u0026?026@&#64u0040?040
?&#8478u211E211E&#8451u21032103
&#8457u21092109°&#176u00B0?0B0
|&#124u007C?07C|&#166u00A6?0A6
&#8211u20132013&#8212u20142014
&#8230u20262026?&#182u00B6?0B6
&#8764u223C223C&#8800u22602260

html是什么

html的全稱為超文本標(biāo)記語言,它是一種標(biāo)記語言,包含了一系列標(biāo)簽.通過這些標(biāo)簽可以將網(wǎng)絡(luò)上的文檔格式統(tǒng)一,使分散的Internet資源連接為一個(gè)邏輯整體,html文本是由html命令組成的描述性文本,html命令可以說明文字,圖形、動(dòng)畫、聲音、表格、鏈接等,主要和css+js配合使用并構(gòu)建優(yōu)雅的前端網(wǎng)頁(yè)。

到此,關(guān)于“HTML和CSS有哪些特殊字符”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注億速云網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)砀鄬?shí)用的文章!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI