<div class="a1"> <div class="abc"></div> </div> <style> .a1{width:100px; height:100px; margin:200px auto;} .abc{width:100px;height:100px;background:#f00; position:relative; transition:.5s} .abc:hover{width:120px; height:120px; margin:-10px 0 0 -10px} </style>
以div中心为原点向四周放大
最新推荐文章于 2022-11-14 10:27:46 发布