使用css3属性鼠标移上图片放大效果

原创2019-02-25 15:11:40150
摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>css3照片墙运上发达效果</title> <style type="text/css"> .pic{margin:50px auto;width:500px

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">H@KFN(IO9~7ON6(ZD[H9[~A.pngKPEJN~Y@7@5_{2OJIH~63W0.png

<title>css3照片墙运上发达效果</title>

<style type="text/css">

.pic{margin:50px auto;width:500px;}

img{border:1px solid red;width:100px;height:100px;box-shadow: 10px 10px 5px #888888;border-radius:50px; transition: all 0.5s;/*图片放大过程的秒数*/}

.pic:hover img{

transform:scale(1.5);/*图片放大的倍数*/

}

</style>

</head>

<body>

<div class="pic">

<div><img src="1.jpg"><br></div>

</div>

</body>

</html>


批改老师:灭绝师太批改时间:2019-02-25 16:34:46
老师总结:简单的css3动画运用好可以实现很多炫酷效果哦!

发布手记

热门词条