菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
355
0

照片墙

原创
05/13 14:22
阅读数 71312
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>照片墙</title>
<style type="text/css">
div{
width: 960px;
margin: 200px auto;
position: relative;
}
img{
border: 1px solid #ddd;
padding: 10px;
position: absolute;
background: white;
z-index: 1;
}
img:nth-of-type(even){
width: 200px;
}
img:nth-of-type(odd){
width: 300px;
}
img:nth-child(1){
top: 0;
left: 300px;
transform: rotate(-15deg);
}
img:nth-child(2){
top: -50px;
left: 600px;
transform: rotate(-20deg);
}
img:nth-child(3){
bottom: 0;
right: 0;
transform: rotate(15deg);
}
img:nth-child(4){
bottom: 0;
right: 340px;
transform: rotate(-20deg);
}
img:nth-child(5){
top: -230px;
left: 10px;
transform: rotate(-30deg);
}
img:nth-child(6){
top: 20px;
left: 10px;
transform: rotate(20deg);
}
img:nth-child(7){
top: 5px;
right: -65px;
transform: rotate(20deg);
}
img:nth-child(8){
top: -160px;
left: 235px;
transform: rotate(25deg);
}
img:nth-child(9){
top: 95px;
right: 85px;
transform: rotate(15deg);
}
img:nth-child(10){
top: 50px;
left: 190px;
transform: rotate(-10deg);
}
img:hover{
z-index: 2;
box-shadow: 5px 5px 5px #ddd;
transform: rotate(0deg) scale(1.5);
}
</style>
</head>
<body>
<div>
<img src="1/1.jpg">
<img src="1/2.jpg">
<img src="1/3.jpg">
<img src="1/4.jpg">
<img src="1/5.jpg">
<img src="1/6.jpg">
<img src="1/7.jpg">
<img src="1/8.jpg">
<img src="1/9.jpg">
<img src="1/10.jpg">
</div>
</body>
</html>

发表评论

0/200
355 点赞
0 评论
收藏
为你推荐 换一批