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

所属分类: 网络编程 / JavaScript 阅读数: 1009
收藏 0 赞 0 分享

<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>
<div 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>
</div>
 <script language="JavaScript">
 document.write('<table border="1" width="100%" cellspacing="0" cellpadding="2">\n');
 //document.write('<tr align="center">');
 for (j=0;j<4;j++)
 {
  document.write('<td width="7%" align="center" style="font-size:14px;color:red;background:#D4D0C8">代码</td>\n');
  document.write('<td width="11%" align="center" id="F'+j+'" style="font-size:14px;color:red;;background:#D4D0C8">Webdings</td>\n');
  document.write('<td width="7%" align="center" style="font-size:14px;color:red;;background:#D4D0C8">常规</td>\n');
 }
 for(i=32;i<256;i++)
 {
  if (i%4==0)
  {
   document.write('<tr align="center">\n');
  }
  document.write('<td align="center" style="font-size:14px;background:#D4D0C8; color:blue; font-family: fixedsys"><a>&#</a>'+i+';</td>\n');
  document.write('<td id="f'+i+'" align="center" style="font-size:14px;background:#FFFFFF; color:#CC5800; font-family: Webdings">&#'+i+';</td>\n');
  document.write('<td align="center" style="font-size:14px;background:#FFFFFF;font-family: Arial black">&#'+i+';</td>\n');

  if (i%4==3)
  {
   document.write('</tr>\n');
  }
 }
 document.write('</table>\n');
 </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('F'+m+'.innerHTML="'+fontValue+'";');
  }
  for (n=32;n<256;n++)
  {
   eval('f'+n+'.style.fontFamily="'+fontValue+'";');
  }
 }

 chgFont();
 </script>

</div>
</body>
</html>

更多精彩内容其他人还在看

Jquery-data的三种用法

本篇文章主要介绍了Jquery-data的三种用法。具有很好的参考价值。下面跟着小编一起来看下吧
收藏 0 赞 0 分享

微信小程序实战之自定义toast(6)

这篇文章主要为大家详细介绍了微信小程序实战之自定义toast的相关方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
收藏 0 赞 0 分享

微信小程序--onShareAppMessage分享参数用处(页面分享)

本篇文章主要介绍了微信小程序的页面分享onShareAppMessage分享参数用处的相关资料。具有很好的参考价值。下面跟着小编一起来看下吧
收藏 0 赞 0 分享

微信小程序实战之自定义抽屉菜单(7)

这篇文章主要为大家详细介绍了微信小程序实战之自定义抽屉菜单效果,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
收藏 0 赞 0 分享

微信小程序开发之从相册获取图片 使用相机拍照 本地图片上传

本篇文章主要介绍了微信小程序开发之从相册获取图片--使用相机拍照,本地图片上传的相关资料。具有很好的参考价值。下面跟着小编一起来看下吧
收藏 0 赞 0 分享

JavaScript错误处理和堆栈追踪详解

这篇文章主要为大家详细介绍了JavaScript错误处理和堆栈追踪的相关资料,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
收藏 0 赞 0 分享

微信小程序开发之麦克风动画 帧动画 放大 淡出

本篇文章主要介绍了微信小程序开发之麦克风动画:帧动画、放大、淡出的相关资料。具有很好的参考价值。下面跟着小编一起来看下吧
收藏 0 赞 0 分享

微信小程序实战之自定义模态弹窗(8)

这篇文章主要为大家详细介绍了微信小程序实战之自定义模态弹窗,文中示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
收藏 0 赞 0 分享

jQuery加密密码到cookie的实现代码

本文通过实例代码给大家分享了jquery 加密密码到cookie的实现方法,非常不错,具有参考借鉴价值,需要的朋友参考下吧
收藏 0 赞 0 分享

javascript实现日期三级联动下拉框选择菜单

这篇文章主要介绍了javascript实现日期三级联动下拉框选择菜单,实现JS年月日三级联动下拉框选择功能,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
收藏 0 赞 0 分享
查看更多