九九乘法表JS版
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
span{
display: inline-block;
padding: 5px 10px;
margin: 3px;
background-color: hotpink;
border: 1px solid black;
}
</style>
</head>
<body>
<script type="text/javascript">
for(let i=1;i<=9;i++){
for(let t=1;t<=i;t++){
document.write(`<span>${t}x${i}=${t*i}</span>`)
}
document.write('<br>')
}
</script>
</body>
</html>
本文来自博客园,作者:不尽人意的K,转载请注明原文链接:https://www.cnblogs.com/duan-rui/p/17233872.html