<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> #div1{ width:100px; height: 100px; background: #ccc; position: absolute; left:200px; top:200px; } #div2{ width: 200px; height:200px; background: yellow; position: absolute; left:200px; top:200px; margin-left: -50px; margin-top:-50px; } </style> <script src="move3.js"></script> <script> </script> </head> <body> <div id="div2"></div> <div id="div1"></div> </body> </html>
从中心放大
最新推荐文章于 2022-04-18 23:03:14 发布