9 9乘法表

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
  2. <html>  
  3.   <head>  
  4.     <title>乘法表</title>  
  5. <span style="white-space:pre">  </span>  
  6.     <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">  
  7.     <meta http-equiv="description" content="this is my page">  
  8.     <meta http-equiv="content-type" content="text/html; charset=UTF-8">  
  9.     <script type="text/javascript" src="Scripts/jquery-2.0.2.js"></script>  
  10.     <style type="text/css">  
  11.        .body_class{  
  12.            width:50%;  
  13.            height: 60%;  
  14.            font-size: 16px;  
  15.            background-color: #FFE4E1;  
  16.            font-family: serif sans-serif cursive fantasy;  
  17.            font-weight: bold;  
  18.        }  
  19.     </style>  
  20.     <script type="text/javascript">  
  21.         $(function(){  
  22.            //调用乘法表函数  
  23.            mulTable();  
  24.            //设置整体背景色  
  25.            $("*").css("background-color","#FFE4E1");  
  26.            //设置宽度  
  27.            $("*").css("width","100%");  
  28.            //设置字体大小  
  29.            $("*").css("font-size","24px");  
  30.            //设置字体粗细  
  31.            $("*").css("font-weight","bold");  
  32.            //设置字体颜色  
  33.            $("*").css("color","#000800");  
  34.         });  
  35.           
  36.         function mulTable(){  
  37.             var one;//乘数  
  38.             var two;//被乘数  
  39.             for(one=1;one<=9;one++)  
  40.             {  
  41.                for(two=1;two<=one;two++)  
  42.                {  
  43.                    document.write(one);  
  44.                    document.write('*');  
  45.                    document.write(two);  
  46.                    document.write('=');  
  47.                    document.write(one*two);  
  48.                    document.write('&nbsp;');  
  49.                }  
  50.                document.write('<br/>');  
  51.                document.write('<hr/>');//设置水平线  
  52.             }  
  53.         }  
  54.           
  55.     </script>  
  56.   
  57.   
  58.   </head>  
  59.     
  60.   <body class="body_class">  
  61.        
  62.   </body>  
  63. </html> 
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值