<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>4行3列</title>
</head>
<html>
<head>
<meta charset="UTF-8">
<title>4行3列</title>
</head>
<body>
<script type="text/javascript">
document.write("<table width='300' height='100' border='1' bordercolor='red'>")
for(var i=1;i<=4;i++)
{
document.write("<tr>")
for(var j=1;j<=3;j++)
{
document.write("<td ></td>")
}
document.write("</tr>")
}
document.write("</table>")
</script>
<script type="text/javascript">
document.write("<table width='300' height='100' border='1' bordercolor='red'>")
for(var i=1;i<=4;i++)
{
document.write("<tr>")
for(var j=1;j<=3;j++)
{
document.write("<td ></td>")
}
document.write("</tr>")
}
document.write("</table>")
</script>
</body>
</html>
</html>