方块大小随着滚轮的上下滚动而改变大小 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> #box1 { width: 100px; height: 100px; background-color: aquamarine; } </style> <script type="text/javascript"> /** * 实现鼠标滚动控制方块的大小 */ window