主頁(yè) > 知識(shí)庫(kù) > html中顯示特殊符號(hào)(附帶特殊字符對(duì)應(yīng)表)

html中顯示特殊符號(hào)(附帶特殊字符對(duì)應(yīng)表)

熱門標(biāo)簽:貴陽(yáng)ai外呼系統(tǒng) 愛巢地圖標(biāo)注 智能電銷機(jī)器人廣告語(yǔ) 強(qiáng)訊外呼系統(tǒng) 電話機(jī)器人批發(fā) 電銷外呼線路改不外呼線路 重慶人工智能電銷機(jī)器人報(bào)價(jià) crm外呼系統(tǒng)好不好 長(zhǎng)春極信防封電銷卡公司

問題重現(xiàn)

在使用html進(jìn)行編輯的時(shí)候,特殊符號(hào)往往會(huì)顯示錯(cuò)誤,極端情況下更可能導(dǎo)致網(wǎng)頁(yè)崩潰。如下面這段代碼:

<table>
<tr>
<td>
中_國(guó)_人
</td>
</tr>
</table>

在網(wǎng)頁(yè)中則顯示為:

這里將兩個(gè)下劃線自動(dòng)轉(zhuǎn)化為斜體標(biāo)識(shí)符,導(dǎo)致輸出結(jié)果有誤。

解決方法

這里建議使用字符編碼來替換掉原特殊字符,如將上述代碼改為:

<table>
<tr>
<td>
中``` |```&#95;``` |國(guó)``` |```&#95;``` |人
</td>
</tr>
</table>

則輸出變?yōu)椋?/p>

特殊字符對(duì)應(yīng)表

下面附上特殊字符對(duì)應(yīng)表

字符 十進(jìn)制字符編號(hào) 實(shí)體名字
! &#33; 驚嘆號(hào)Exclamation mark
&#34; &quot; 雙引號(hào)Quotation mark  
# &#35; 數(shù)字標(biāo)志Number sign
$ &#36; 美元標(biāo)志Dollar sign
% &#37; 百分號(hào)Percent sign
& &#38; &amp; Ampersand
&#39; 單引號(hào)Apostrophe
( &#40; 小括號(hào)左邊部分Left parenthesis
) &#41; 小括號(hào)右邊部分Right parenthesis
* &#42; 星號(hào)Asterisk
+ &#43; 加號(hào)Plus sign
, &#44; 逗號(hào)Comma
&#45; 連字號(hào)Hyphen
. &#46; 句號(hào)Period (fullstop)
/ &#47; 斜杠Solidus (slash)
0 &#48; 數(shù)字0 Digit 0
1 &#49; 數(shù)字1 Digit 1
2 &#50; 數(shù)字2 Digit 2
3 &#51; 數(shù)字3 Digit 3
4 &#52; 數(shù)字4 Digit 4
5 &#53; 數(shù)字5 Digit 5
6 &#54; 數(shù)字6 Digit 6
7 &#55; 數(shù)字7 Digit 7
8 &#56; 數(shù)字8 Digit 8
9 &#57; 數(shù)字9 Digit 9
: &#58; 冒號(hào)Colon
; &#59; 分號(hào)Semicolon
< &#60; &lt; 小于號(hào)Less than
= &#61; 等于符號(hào)Equals sign
> &#62; &gt; 大于號(hào)Greater than
? &#63; 問號(hào)Question mark
@ &#64; Commercial at
A &#65; 大寫A Capital A
B &#66; 大寫B(tài) Capital B
C &#67; 大寫C Capital C
D &#68; 大寫D Capital D
E &#69; 大寫E Capital E
F &#70; 大寫F Capital F
G &#71; 大寫G Capital G
H &#72; 大寫H Capital H
I &#73; 大寫J Capital I
J &#74; 大寫K Capital J
K &#75; 大寫L Capital K
L &#76; 大寫K Capital L
M &#77; 大寫M Capital M
N &#78; 大寫N Capital N
O &#79; 大寫O Capital O
P &#80; 大寫P Capital P
Q &#81; 大寫Q Capital Q
R &#82; 大寫R Capital R
S &#83; 大寫S Capital S
T &#84; 大寫T Capital T
U &#85; 大寫U Capital U
V &#86; 大寫V Capital V
W &#87; 大寫W Capital W
X &#88; 大寫X Capital X
Y &#89; 大寫Y Capital Y
Z &#90; 大寫Z Capital Z
[ &#91; 中括號(hào)左邊部分Left square bracket
\ &#92; 反斜杠Reverse solidus (backslash)
] &#93; 中括號(hào)右邊部分Right square bracket
^ &#94; Caret
_ &#95; 下劃線Horizontal bar (underscore)
` &#96; 尖重音符Acute accent
a &#97; 小寫a Small a
b &#98; 小寫b Small b
c &#99; 小寫c Small c
d &#100; 小寫d Small d
e &#101; 小寫e Small e
f &#102; 小寫f Small f
g &#103; 小寫g Small g
h &#104; 小寫h Small h
i &#105; 小寫i Small i
j &#106; 小寫j Small j
k &#107; 小寫k Small k
l &#108; 小寫l Small l
m &#109; 小寫m Small m
n &#110; 小寫n Small n
o &#111; 小寫o Small o
p &#112; 小寫p Small p
q &#113; 小寫q Small q
r &#114; 小寫r Small r
s &#115; 小寫s Small s
t &#116; 小寫t Small t
u &#117; 小寫u Small u
v &#118; 小寫v Small v
w &#119; 小寫w Small w
x &#120; 小寫x Small x
y &#121; 小寫y Small y
z &#122; 小寫z Small z
{ &#123; 大括號(hào)左邊部分Left curly brace
| &#124; 豎線Vertical bar
} &#125; 大括號(hào)右邊部分Right curly brace
~ &#126; Tilde
&#127; 未使用Unused
  &#160; &nbsp; 空格Nonbreaking space
¡ &#161; &iexcl; Inverted exclamation
¢ &#162; &cent; 貨幣分標(biāo)志Cent sign
£ &#163; &pound; 英鎊標(biāo)志Pound sterling
¤ &#164; &curren; 通用貨幣標(biāo)志General currency sign
¥ &#165; &yen; 日元標(biāo)
¦ &#166; &brvbar; or &brkbar;“`
§ &#167; &sect; 分節(jié)號(hào)Section sign
¨ &#168; &uml; or ¨“`
© &#169; &copy; 版權(quán)標(biāo)志Copyright
ª &#170; &ordf; Feminine ordinal
« &#171; &laquo; Left angle quote, guillemet left
¬ “`¬ ¬ Not sign
“““ &#173; &shy; Soft hyphen
® &#174; &reg; 注冊(cè)商標(biāo)標(biāo)志Registered trademark
¯ &#175; &macr; or &hibar;“`
° &#176; &deg; 度數(shù)標(biāo)志Degree sign
± &#177; &plusmn; 加或減Plus or minus
² &#178; &sup2; 上標(biāo)2 Superscript two
³ &#179; &sup3; 上標(biāo)3 Superscript three
´ &#180; &acute; 尖重音符Acute accent
µ &#181; &micro; Micro sign
&#182; &para; Paragraph sign
· &#183; &middot; Middle dot
¸ &#184; &cedil; Cedilla
¹ &#185; &sup1; 上標(biāo)1 Superscript one
º &#186; &ordm; Masculine ordinal
» &#187; &raquo; Right angle quote, guillemet right
¼ &#188; &frac14; 四分之一Fraction one-fourth
½ &#189; &frac12; 二分之一Fraction one-half
¾ &#190; &frac34; 四分之三Fraction three-fourths
¿ &#191; &iquest; Inverted question mark
À &#192; &Agrave; Capital A, grave accent
Á &#193; &Aacute; Capital A, acute accent
 &#194; &Acirc; Capital A, circumflex
à &#195; &Atilde; Capital A, tilde
Ä &#196; &Auml; Capital A, di?esis / umlaut
Å &#197; &Aring; Capital A, ring
Æ &#198; &AElig; Capital AE ligature
Ç &#199; &Ccedil; Capital C, cedilla
È &#200; &Egrave; Capital E, grave accent
É &#201; &Eacute; Capital E, acute accent
Ê &#202; &Ecirc; Capital E, circumflex
Ë &#203; &Euml; Capital E, di?esis / umlaut
Ì &#204; &Igrave; Capital I, grave accent
Í &#205; &Iacute; Capital I, acute accent
Î &#206; &Icirc; Capital I, circumflex
Ï &#207; &Iuml; Capital I, di?esis / umlaut
Ð &#208; &ETH; Capital Eth, Icelandic
Ñ &#209; &Ntilde; Capital N, tilde
Ò &#210; &Ograve; Capital O, grave accent
Ó &#211; &Oacute; Capital O, acute accent
Ô &#212; &Ocirc; Capital O, circumflex
Õ &#213; &Otilde; Capital O, tilde
Ö &#214; &Ouml; Capital O, di?esis / umlaut
× &#215; &times; 乘號(hào)Multiply sign
Ø &#216; &Oslash; Capital O, slash
Ù &#217; &Ugrave; Capital U, grave accent
Ú &#218; &Uacute; Capital U, acute accent
Û &#219; &Ucirc; Capital U, circumflex
Ü &#220; &Uuml; Capital U, di?esis / umlaut
Ý &#221; &Yacute; Capital Y, acute accent
Þ &#222; &THORN; Capital Thorn, Icelandic
ß &#223; &szlig; Small sharp s, German sz
à &#224; &agrave; Small a, grave accent
á &#225; &aacute; Small a, acute accent
â &#226; &acirc; Small a, circumflex
ã &#227; &atilde; Small a, tilde
ä &#228; &auml; Small a, di?esis / umlaut
å &#229; &aring; Small a, ring
æ &#230; &aelig; Small ae ligature
ç &#231; &ccedil; Small c, cedilla
è &#232; &egrave; Small e, grave accent
é &#233; &eacute; Small e, acute accent
ê &#234; &ecirc; Small e, circumflex
ë &#235; &euml; Small e, di?esis / umlaut
ì &#236; &igrave; Small i, grave accent
í &#237; &iacute; Small i, acute accent
î &#238; &icirc; Small i, circumflex
ï &#239; &iuml; Small i, di?esis / umlaut
ð &#240; &eth; Small eth, Icelandic
ñ &#241; &ntilde; Small n, tilde
ò &#242; &ograve; Small o, grave accent
ó &#243; &oacute; Small o, acute accent
ô &#244; &ocirc; Small o, circumflex
õ &#245; &otilde; Small o, tilde
ö &#246; &ouml; Small o, di?esis / umlaut
÷ &#247; &divide; 除號(hào)Division sign
ø &#248; &oslash; Small o, slash
ù &#249; &ugrave; Small u, grave accent
ú &#250; &uacute; Small u, acute accent
û &#251; &ucirc; Small u, circumflex
ü &#252; &uuml; Small u, di?esis / umlaut
ý &#253; &yacute; Small y, acute accent
þ &#254; &thorn; Small thorn, Icelandic
ÿ &#255; &yuml; Small y, umlaut

到此這篇關(guān)于html中顯示特殊符號(hào)(附帶特殊字符對(duì)應(yīng)表)的文章就介紹到這了,更多相關(guān)html顯示特殊符號(hào)內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持腳本之家!

標(biāo)簽:清遠(yuǎn) 保定 上海 內(nèi)蒙古 廣安 山南 吳忠 陜西

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《html中顯示特殊符號(hào)(附帶特殊字符對(duì)應(yīng)表)》,本文關(guān)鍵詞  html,中,顯示,特殊符號(hào),附帶,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《html中顯示特殊符號(hào)(附帶特殊字符對(duì)應(yīng)表)》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于html中顯示特殊符號(hào)(附帶特殊字符對(duì)應(yīng)表)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章