鼠标放到图片上图片就变大

<!DOCTYPE html>
<html>
<head>
<style> 
    div{  
                width: 300px;  
                height: 300px;  
                border: #000 solid 1px;  
                margin: 50px auto;  
                overflow: hidden;  
            }  
            div img{  
                cursor: pointer;  
                transition: all 2s;  
            }  
            div img:hover{  
                transform: scale(1.2);  
            }  
</style>
</head>
<body>
<div>
    <img src="/8719e3c7cf02ebca7f5afa7de406ecaf.jpg">
</div>
</body>
</html>

 

你可能感兴趣的