最全的HTML特殊字符列表
'   Nonbreaking space
¡ ¡ ¡ Inverted exclamation
¢ ¢ ¢ Cent sign
£ £ £ Pound sterling
¤ ¤ ¤ General currency sign
¥ ¥ ¥ Yen sign
¦ ¦ ¦ or &brkbar; Broken vertical bar
§ § § Section sign
¨ ¨ ¨ or ¨ Diæresis / Umlaut
© © © Copyright
ª ª ª Feminine ordinal
« « « Left angle quote, guillemot left
¬ ¬ ¬ Not sign
­ ­ Soft hyphen
® ® ® Registered trademark
¯ ¯ ¯ or &hibar; Macron accent
° ° ° Degree sign
± ± ± Plus or minus
² ² ² Superscript two
³ ³ ³ Superscript three
´ ´ ´ Acute accent
µ µ µ Micro sign
¶ ¶ ¶ Paragraph sign
· · · Middle dot
¸ ¸ ¸ Cedilla
¹ ¹ ¹ Superscript one
º º º Masculine ordinal
» » » Right angle quote, guillemot right
¼ ¼ ¼ Fraction one-fourth
½ ½ ½ Fraction one-half
¾ ¾ ¾ Fraction three-fourths
¿ ¿ ¿ Inverted question mark
À À À Capital A, grave accent
Á Á Á Capital A, acute accent
   Capital A, circumflex
à à à Capital A, tilde
Ä Ä Ä Capital A, diæresis / umlaut
Å Å Å Capital A, ring
Æ Æ Æ Capital AE ligature
Ç Ç Ç Ca
相关文档:
HTML accesskey 属性
accesskey 属性 -- 代表链接的快捷键访问方式
定义了accesskey的链接可以使用快捷键(ALT+字母)访问.
主菜单与导航菜单使用accesskey,通常是不错的选择.
取值:
字母
引用网址:http://www.dreamdu.com/xhtml/attribute_accesskey/
示例
<a href="http://www.dreamdu.com/xhtml/" acces ......
--------------
1、显示图片:
输入如下代码:
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gbk" /& ......
1、直接换行
输入如下代码:
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=g ......
最近在做一些内容搜索的工作,搜索出来的内容为html格式,列表部分需要显示每项内容的一部分。因为是html格式的内容,直接截取内容的前多少字符显然不合适了。而如果直接去掉所有html格式然后再截取又无法达到想要的效果,再网上搜了一通之后,写下如下代码应该可以满足基本的要求了。(js写的,因为容易调试)
代码
var&nb ......