<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <a href="www.baidu.com" class="box"></a> <style> a.box{ height:100px; width:100px; display:block; background:#00f; border:1px solid #000; -webkit-transition: all 0.5s linear; -webkit-transform: translate(100px,50px); } a.box:hover{ -webkit-transform: translate(100px,50px) scale(1.1) rotate(30deg); background:#f00; } </style> </body> </html>
h5正方形悬停变换成直立
最新推荐文章于 2022-07-27 19:10:46 发布