<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<style type="text/css">
div{
width: 60px;
height: 20px;
text-align: center;
line-height: 20px;
display: inline-block;
margin: 4px;
border: 1px solid deeppink;
background-color: deeppink;
color: white;
font-weight: 400;
}
</style>
<script type="text/javascript">
//九九乘法表
for (var i = 1; i <= 9; i++) {
for(var j = 1; j < i + 1; j++){
document.write("<div>" + j + "*" + i + "=" + (i * j) +"</div>");
}
document.write("<br />");
}
</script>
</body>
</html>