鼠标滑过图片图片放大

xiaoxiao2022-06-11  26

<!doctype html> <html> <head> <style> img { display:block; } .imgbox { width:160px; border:solid 2px gray; height:120px; overflow:hidden; } .imgbox img { width:160px; height:120px; position:relative; transition:all 1s; } .imgbox:hover img{ -webkit-transform:scale(1.5,1.5); } </style> <meta charset="utf-8"> <title>css鼠标经过图片放大效果</title> </head> <body> <div class="imgbox"> <img src="https://inews.gtimg.com/newsapp_bt/0/5934412585/1000"> </div> </body> </html>

 

转载请注明原文地址: https://www.6miu.com/read-4931395.html

最新回复(0)