CSS效果当移动到图片上图片会变大,但不会影响到周围盒子的布局( transform: scale( 倍数r))
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
img{
float: left;
margin: 400px 100px;
transition: all 0.4s;/*过渡效果 */
}
img:hover{
transform: scale(1.4);
}
</style>
</head>
<body>
<img src="../学成在线案例/images/137.png" alt="">
<img src="../学成在线案例/images/136.png" alt="">
</body>
</html>