效果图:
图片:1.png
代码如下:
span实现的乘法表.wrap {
width: 800px;
margin: 20px auto;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
span {
padding: 3px;
font-weight: 700;
display: inline-block;
line-height: 30px;
border-bottom: 2px solid #000000;
border-left: 2px solid #000000;
width: 80px;
cursor: pointer; } .last {
margin-top: -2px;
border-top: 2px solid #000000;
border-right: 2px solid #000000; }
.bg0 {
background-color: yellow; }
.bg1 {
background-color: lawngreen; }
.bg2 {