abstract:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>页面中鼠标移上图片放大效果</title> <link rel="shortcut icon" href="static/images/logo.png" type="image/x-icon"> <style> .pic{ width: 500px; margin: 150px auto; } .pic img{ border-radius:15px; /* 定义图片放大过程的秒数 */ transition: all 2s; box-shadow: 2px 12px 5px #666; } .pic:hover img{ height: 300px; width: 300px; /* 图片放大倍数 */ transform: scale(1.5) } </style> </head> <body style="background: #cccccc"> <div class="pic"> <img src="static/images/1.jpg" alt=""> </div> </body> </html>
Correcting teacher:灭绝师太Correction time:2019-03-19 09:19:06
Teacher's summary:效果相对简单,完成的不错,关于css3动画效果还可以课外拓展哦