Blogger Information
Blog 52
fans 1
comment 1
visits 38271
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
js生成10行10列
小丑0o鱼
Original
2293 people have browsed it

实例

<!doctype html>
<html>
 <head>
  <meta charset=UTF-8>
  <meta name=Generator content=baidu.com>
  <meta name=Author content=作者>
  <meta name=Keywords content=关键词>
  <meta name=Description content=文档描述信息>
    <!--<link rel="stylesheet" type="text/css" href="css.css">
        <link rel="icon" type="image/x-icon" href="img/标题logo"> 
        <script type="text/javascript" src=""></script>                         -->
  <style type="text/css">
	*{margin:0;padding:0;}
    address, cite, dfn, em, var{font-style:normal;}
    li{font-style:normal;}
	a{text-decoration:none;color:#f40;}
	a:hover { text-decoration:underline;} 
	table{border-collapse:collapse; border-spacing:0;}
	ul, ol { list-style:none; } 
    h1, h2, h3, h4, h5, h6{ font-size:100%; }
	fieldset, img { border:0; }
	tr,td{border:1px solid #d219192b;text-align:center;}
  </style>
  <title>js生成10行10列</title>
 </head>
 <body>
  

  <script>
  document.write('<table border=1 width="400px" height="400px">');
    var num=1; 
  for (var a=1;a<=10;a++)
  {
      document.write('<tr>');
      for (var b=1;b<=10;b++)
      {
		  document.write('<td>'+num+'</td>');
		  num++;
      }
       document.write('</tr>');
  }
  document.write('</table>');
  </script>
  
  
  为什么最后边那个列。。。要比前面的宽呢。。。why、、、、
 </body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

 

Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
1 comments
2019-03-31 00:00:17
为什么最后一列比前面的要宽。。。。why?
1 floor
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!