首页 >web前端 >js教程 >特殊字符、常规符号及其代码对照表

特殊字符、常规符号及其代码对照表

巴扎黑
巴扎黑原创
2017-05-21 11:26:333041浏览

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><META NAME="Author" CONTENT="goaler" /><META NAME="Keywords" CONTENT="特殊字符、常规符号及其代码对照表" /><META NAME="Description" CONTENT="特殊字符、常规符号及其代码对照表" /><title>特殊字符、常规符号及其代码对照表</title><link href="style.css" rel="stylesheet" type="text/css" /></head>
<body><p class="menu_head">特殊字符、常规符号及其代码对照表  <select id="family" size="1" onChange="JavaScript:chgFont();" style="color:red;">  <option selected value="Webdings">Webdings</option>  <option value="Wingdings">Wingdings</option>  <option value="Wingdings 2">Wingdings 2</option>  <option value="Wingdings 3">Wingdings 3</option>  <option value="Symbol">Symbol</option>  </select></p> <script language="JavaScript"> document.write(&#39;<table border="1" width="100%" cellspacing="0" cellpadding="2">\n&#39;); //document.write(&#39;<tr align="center">&#39;); for (j=0;j<4;j++) {  document.write(&#39;<td width="7%" align="center" style="font-size:14px;color:red;background:#D4D0C8">代码</td>\n&#39;);  document.write(&#39;<td width="11%" align="center" id="F&#39;+j+&#39;" style="font-size:14px;color:red;;background:#D4D0C8">Webdings</td>\n&#39;);  document.write(&#39;<td width="7%" align="center" style="font-size:14px;color:red;;background:#D4D0C8">常规</td>\n&#39;); } for(i=32;i<256;i++) {  if (i%4==0)  {   document.write(&#39;<tr align="center">\n&#39;);  }  document.write(&#39;<td align="center" style="font-size:14px;background:#D4D0C8; color:blue; font-family: fixedsys"><a></a>&#39;+i+&#39;;</td>\n&#39;);  document.write(&#39;<td id="f&#39;+i+&#39;" align="center" style="font-size:14px;background:#FFFFFF; color:#CC5800; font-family: Webdings">&#39;+i+&#39;;</td>\n&#39;);  document.write(&#39;<td align="center" style="font-size:14px;background:#FFFFFF;font-family: Arial black">&#39;+i+&#39;;</td>\n&#39;);
  if (i%4==3)   {   document.write(&#39;</tr>\n&#39;);  } } document.write(&#39;</table>\n&#39;); </script>
 <script language="JavaScript"> function chgFont()  {  fontIndex = document.getElementById("family").selectedIndex;  fontValue = document.getElementById("family").options[fontIndex].value;
  for (m=0;m<4;m++)  {   eval(&#39;F&#39;+m+&#39;.innerHTML="&#39;+fontValue+&#39;";&#39;);  }  for (n=32;n<256;n++)  {   eval(&#39;f&#39;+n+&#39;.style.fontFamily="&#39;+fontValue+&#39;";&#39;);  } }
 chgFont(); </script>
</p></body></html>

以上是特殊字符、常规符号及其代码对照表的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn