九九乘法表
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>boke</title>
<style>
table {
width: 800px;
height: 300px;
border-collapse: collapse;
}
table th {
border: 1px solid #069;
}
</style>
</head>
<body>
<script>
document.write("<table>");
var str = "";
for (var x = 1; x <= 9; x++) {
document.write("<tr>");
for (var y = 1; y <= x; y++) {
document.write("<th>" + x + "*" + y + "=" + (x * y) + "</th>");
}
document.write("</tr>");
}
document.write("</table>");
</script>
</body>
</html>