代码如下:
<html>
<head>
<title></title>
<style type="text/css">
.box {
width: 2000px;
height: 500px;
background-color: green;
}
.a{
float: left;
width: 400px;
height: 400px;
left:20px;
top:20px;
position: relative;
}
.b{
float: left;
width: 400px;
height: 400px;
left:100px;
top: 20px;
position: relative;
overflow: hidden;
border: 22px solid yellow;
border-radius:22px;
}
.c{
float: left;
width: 422px;
height: 422px;
left:120px;
top:20px;
position: relative;
}
.d{
float: left;
width: 422px;
height: 422px;
left:190px;
top:20px;
position: relative;
}
img[id^=p]{
border: 22px solid yellow;
transition: all 3s;
border-radius: 22px;
}
border-radius: 66%;
}
transition: all 3s;
}
transform: scale(3);
}
transform: rotate(10deg);
}
filter: grayscale(200%);
}
</style>
</head>
<body>
<div class="box">
<div class="a">
<img id="p1" src="1.jpg" alt="">
</div>
<div class="b">
<img id="p2" src="2.jpg" alt="">
</div>
<div class="c">
<img id="p3" src="3.jpg" alt="">
</div>
<div class="d">
<img id="p4" src="4.jpg" alt="">
</div>
</div>
</body>
</html>