代码拉取完成,页面将自动刷新
<!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>
* {
margin: 0;
padding: 0;
}
img {
vertical-align: bottom;
}
li {
list-style: none;
}
body {
/* 透视属性 */
perspective: 800px;
background: url(./images/guide-bg2.jpg) no-repeat;
background-size: 100% 100%;
}
.box {
width: 1200px;
height: 420px;
/* border:1px solid red; */
margin: 200px auto;
box-sizing: border-box;
position: relative;
}
.box ul {
height: 380px;
}
.box ul li {
width: 200px;
height: 380px;
}
.box ul li {
position: absolute;
}
.box ul li:nth-child(1) {
left: 0;
}
.box ul li:nth-child(2) {
left: 20%;
top: 50px;
}
.box ul li:nth-child(3) {
left: 40%;
}
.box ul li:nth-child(4) {
left: 60%;
top: 50px;
}
.box ul li:nth-child(5) {
left: 80%;
}
.box ul li img {
position: absolute;
}
.box ul li img.front {
/* 过渡属性 */
transition: transform 1s;
z-index: 1000;
}
.box ul li img.back {
transition: transform 1s;
transform: rotateY(-180deg);
}
.box ul li:hover .front {
transform: rotateY(180deg);
backface-visibility: hidden;
}
.box ul li:hover .back {
transform: rotateY(0deg);
}
</style>
</head>
<body>
<div class="box">
<ul>
<li>
<img src="images/card6-back.png" class="back" />
<img src="images/card6.png" class="front" />
</li>
<li>
<img src="images/card7.png" class="front" /><img src="images/card7-back.png" class="back" />
</li>
<li>
<img src="images/card8.png" class="front" /><img src="images/card8-back.png" class="back" />
</li>
<li>
<img src="images/card9.png" class="front" /><img src="images/card9-back.png" class="back" />
</li>
<li>
<img src="images/card10.png" class="front" /><img src="images/card10-back.png" class="back" />
</li>
</ul>
</div>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。