在l中输⼊很多空格,则只会保留⼀个,如果需要多个空格⽤于对齐等操作时,需要使⽤其转义字符:" "类似的转义字符还有很多,列表如下(后⾯是英⽂说明):
<!ENTITY nbsp  CDATA " " -- no-break space -->
<!ENTITY iexcl  CDATA "¡" -- inverted exclamation mark -->
<!ENTITY cent  CDATA "¢" -- cent sign -->
<!ENTITY pound  CDATA "£" -- pound sterling sign -->
<!ENTITY curren CDATA "¤" -- general currency sign -->
<!ENTITY yen    CDATA "¥" -- yen sign -->
<!ENTITY brvbar CDATA "¦" -- broken (vertical) bar -->
<!ENTITY sect  CDATA "§" -- section sign -->
<!ENTITY uml    CDATA "¨" -- umlaut (dieresis) -->
<!ENTITY copy  CDATA "©" -- copyright sign -->
<!ENTITY ordf  CDATA "ª" -- ordinal indicator, feminine -->
<!ENTITY laquo  CDATA "«" -- angle quotation mark, left -->
<!ENTITY not    CDATA "¬" -- not sign -->
<!ENTITY shy    CDATA "­" -- soft hyphen -->
<!ENTITY reg    CDATA "®" -- registered sign -->
<!ENTITY macr  CDATA "¯" -- macron -->
<!ENTITY deg    CDATA "°" -- degree sign -->
<!ENTITY plusmn CDATA "±" -- plus-or-minus sign -->
<!ENTITY sup2  CDATA "²" -- superscript two -->
<!ENTITY sup3  CDATA "³" -- superscript three -->
<!ENTITY acute  CDATA "´" -- acute accent -->
<!ENTITY micro  CDATA "µ" -- micro sign -->
<!ENTITY para  CDATA "¶" -- pilcrow (paragraph sign) -->
<!ENTITY middot CDATA "·" -- middle dot -->
<!ENTITY cedil  CDATA "¸" -- cedilla -->
<!ENTITY sup1  CDATA "¹" -- superscript one -->
<!ENTITY ordm  CDATA "º" -- ordinal indicator, masculine -->
<!ENTITY raquo  CDATA "»" -- angle quotation mark, right -->
<!ENTITY frac14 CDATA "¼" -- fraction one-quarter -->
<!ENTITY frac12 CDATA "½" -- fraction one-half -->
<!ENTITY frac34 CDATA "¾" -- fraction three-quarters -->
<!ENTITY iquest CDATA "¿" -- inverted question mark -->
<!ENTITY Agrave CDATA "À" -- capital A, grave accent -->
<!ENTITY Aacute CDATA "Á" -- capital A, acute accent -->
<!ENTITY Acirc  CDATA "Â" -- capital A, circumflex accent -->
<!ENTITY Atilde CDATA "Ã" -- capital A, tilde -->
<!ENTITY Auml  CDATA "Ä" -- capital A, dieresis or umlaut mark -->
<!ENTITY Aring  CDATA "Å" -- capital A, ring -->空格字符串是什么
<!ENTITY AElig  CDATA "Æ" -- capital AE diphthong (ligature) -->
<!ENTITY Ccedil CDATA "Ç" -- capital C, cedilla -->
<!ENTITY Egrave CDATA "È" -- capital E, grave accent -->
<!ENTITY Eacute CDATA "É" -- capital E, acute accent -->
<!ENTITY Ecirc  CDATA "Ê" -- capital E, circumflex accent -->
<!ENTITY Euml  CDATA "Ë" -- capital E, dieresis or umlaut mark -->
<!ENTITY Igrave CDATA "Ì" -- capital I, grave accent -->
<!ENTITY Iacute CDATA "Í" -- capital I, acute accent -->
<!ENTITY Icirc  CDATA "Î" -- capital I, circumflex accent -->
<!ENTITY Iuml  CDATA "Ï" -- capital I, dieresis or umlaut mark -->
<!ENTITY ETH    CDATA "Ð" -- capital Eth, Icelandic -->
<!ENTITY Ntilde CDATA "Ñ" -- capital N, tilde -->
<!ENTITY Ograve CDATA "Ò" -- capital O, grave accent -->
<!ENTITY Oacute CDATA "Ó" -- capital O, acute accent -->
<!ENTITY Ocirc  CDATA "Ô" -- capital O, circumflex accent -->
<!ENTITY Otilde CDATA "Õ" -- capital O, tilde -->
<!ENTITY Ouml  CDATA "Ö" -- capital O, dieresis or umlaut mark -->
<!ENTITY times  CDATA "×" -- multiply sign -->
<!ENTITY Oslash CDATA "Ø" -- capital O, slash -->
<!ENTITY Ugrave CDATA "Ù" -- capital U, grave accent -->
<!ENTITY Uacute CDATA "Ú" -- capital U, acute accent -->
<!ENTITY Ucirc  CDATA "Û" -- capital U, circumflex accent -->
<!ENTITY Uuml  CDATA "Ü" -- capital U, dieresis or umlaut mark -->
<!ENTITY Yacute CDATA "Ý" -- capital Y, acute accent -->
<!ENTITY THORN  CDATA "Þ" -- capital THORN, Icelandic -->
<!ENTITY szlig  CDATA "ß" -- small sharp s, German (sz ligature) -->
<!ENTITY agrave CDATA "à" -- small a, grave accent -->
<!ENTITY aacute CDATA "á" -- small a, acute accent -->
<!ENTITY acirc  CDATA "â" -- small a, circumflex accent -->
<!ENTITY atilde CDATA "ã" -- small a, tilde -->
<!ENTITY auml  CDATA "ä" -- small a, dieresis or umlaut mark -->
<!ENTITY aring  CDATA "å" -- small a, ring -->
<!ENTITY aelig  CDATA "æ" -- small ae diphthong (ligature) -->
<!ENTITY ccedil CDATA "ç" -- small c, cedilla -->
<!ENTITY egrave CDATA "è" -- small e, grave accent -->
<!ENTITY eacute CDATA "é" -- small e, acute accent -->
<!ENTITY ecirc  CDATA "ê" -- small e, circumflex accent -->
<!ENTITY euml  CDATA "ë" -- small e, dieresis or umlaut mark -->
<!ENTITY igrave CDATA "ì" -- small i, grave accent -->
<!ENTITY iacute CDATA "í" -- small i, acute accent -->
<!ENTITY icirc  CDATA "î" -- small i, circumflex accent -->
<!ENTITY iuml  CDATA "ï" -- small i, dieresis or umlaut mark --> <!ENTITY eth    CDATA "ð" -- small eth, Icelandic -->
<!ENTITY ntilde CDATA "ñ" -- small n, tilde -->
<!ENTITY ograve CDATA "ò" -- small o, grave accent -->
<!ENTITY oacute CDATA "ó" -- small o, acute accent -->
<!ENTITY ocirc  CDATA "ô" -- small o, circumflex accent -->
<!ENTITY otilde CDATA "õ" -- small o, tilde -->
<!ENTITY ouml  CDATA "ö" -- small o, dieresis or umlaut mark --> <!ENTITY divide CDATA "÷" -- divide sign -->
<!ENTITY oslash CDATA "ø" -- small o, slash -->
<!ENTITY ugrave CDATA "ù" -- small u, grave accent -->
<!ENTITY uacute CDATA "ú" -- small u, acute accent -->
<!ENTITY ucirc  CDATA "û" -- small u, circumflex accent -->
<!ENTITY uuml  CDATA "ü" -- small u, dieresis or umlaut mark --> <!ENTITY yacute CDATA "ý" -- small y, acute accent -->
<!ENTITY thorn  CDATA "þ" -- small thorn, Icelandic -->
<!ENTITY yuml  CDATA "ÿ" -- small y, dieresis or umlaut mark -->

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。