点击(此处)折叠或打开

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <style type="text/css">

  5. </style>
  6. <title>字体大中小代码&字号缩放代码</title>
  7. </head>
  8. <body>
  9. <script type="text/javascript">
  10.     function doZoom(size) {
  11.         var zoom = document.all ? document.all['Zoom'] : document.getElementById('Zoom');
  12.         zoom.style.fontSize = size + 'px';
  13.     }
  14. </script>
  15. 字体大小:<a href="javascript:doZoom(12)"></a> <a href="javascript:doZoom(14)"></a> <a href="javascript:doZoom(16)"></a>
  16. <br /><br />
  17. <div id="Zoom">源码爱好者祝福看到此页的朋友们,工作顺利,天天开心!</div>
  18. <br />
  19. </body>
  20. </html>

10-20 22:14