头条PC端的鼠标经过图片放大效果

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .con{width:300px;height:300px;
            border: 1px solid black;
            overflow: hidden;
        }
        .con img{
            transition:transform  2s;
        }
        .con img:hover{
            transform: scale(1.5)
        }
        
    </style>
</head>
<body>
<div class="con">
    <img src="img/1.jpg" width="100%" height="100%">
</div>
</body>
</html>

  

posted @ 2017-02-08 18:54  刘浩2561179983  阅读(168)  评论(0编辑  收藏  举报