<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>首页</title>
<link rel="stylesheet" type="text/css" href="./index.css">
<style>
/* *{
padding: 0px;
margin: 0px;
} */
.container {
/* background-color: #fff; */
width: 100%;
height: 650px;
margin-left: -80px;
margin: 0 auto;
position: relative;
overflow: hidden;
}
.slide {
width: 100%;
height: 650px;
position: absolute;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
font-size: 30px;
color: #fff;
background-color: #333;
opacity: 0;
transition: opacity 1s;
}
.slide.active {
opacity: 1;
}
.slide:nth-child(1) {
background-image: url("img/lb.jpg");
background-size: 100% 650px;
}
.slide:nth-child(2) {
background-image: url("img/lb1.jpg");
background-size: 100% 650px;
}
.slide:nth-child(3) {
background-image: url("img/lb2.jpg");
background-size: 100% 650px;
}
.slide:nth-child(4) {
background-image: url("img/lb3.jpg");
background-size: 100% 650px;
}
.slide:nth-child(5) {
background-image: url("img/lb4.jpg");
background-size: 100% 650px;
}
.slide:nth-child(6) {
background-image: url("img/lb5.jpg");
background-size: 100% 650px;
}
.slide:nth-child(7) {
background-image: url("img/lb6.jpg");
background-size: 100% 650px;
}
.slide:nth-child(8) {
background-image: url("img/lb7.jpg");
background-size: 100% 650px;
}
.dots {
width: 100%;
position: absolute;
bottom: 20px;
display: flex;
justify-content: center;
align-items: center;
}
.dot {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #fff;
margin: 0 10px;
cursor: pointer;
opacity: 0.5;
transition: opacity 0.5s;
}
.dot.active {
opacity: 1;
}
</style>
</head>
<body>
<!--头部内容-->
<div class="topbar" id="topbar">
<div class="barconst" >
<div class="const-lt">
<a href="index.html">首页</a>
<a href="#">官网</a>
<a href="#">更多精彩</a>
</div>
<div class="const-ri">
<a href="../login/login.html">登录</a>
<a href="../mide/mide.html">个人中心</a>
<a href="../fuwu/index.html">服务中心</a>
<a href="../cart/cart.html">购物车</a>
</div>
</div>
</div>
<!-- 回到顶部 -->
<div class="top" onclick="returnTop()">
︿
</div>
<!--中间主体内容部分-->
<div class="zhuti">
<div class="container">
<div class="slide active"></div>
<div class="slide"></div>
<div class="slide"></div>
<div class="slide"></div>
<div class="slide"></div>
<div class="slide"></div>
<div class="slide"></div>
<div class="slide"></div>
<div class="dots">
<div class="dot active" onclick="changeSlide(0)"></div>
<div class="dot" onclick="changeSlide(1)"></div>
<div class="dot" onclick="changeSlide(2)"></div>
<div class="dot" onclick="changeSlide(3)"></div>
<div class="dot" onclick="changeSlide(4)"></div>
<div class="dot" onclick="changeSlide(5)"></div>
<div class="dot" onclick="changeSlide(6)"></div>
<div class="dot" onclick="changeSlide(7)"></div>
</div>
</div>
<div class="gdleft">
<ul>
<li class="gdleft1">
<a href="#"><span>手机</span></a>
<span class="item">></span>
<div class="shouji">
<div style="width: 140px;height: 60px;background-color: white;margin-top: 40px;margin-left: 30px;">
<img src="./img/dh1.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: -60px;margin-left: 230px;">
<img src="./img/dh1.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: 40px;margin-left: 30px;">
<img src="./img/dh1.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: -60px;margin-left: 230px;">
<img src="./img/dh1.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color:white;margin-top: 40px;margin-left: 30px;">
<img src="./img/dh1.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: -60px;margin-left: 230px;">
<img src="./img/dh1.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: 40px;margin-left: 30px;">
<img src="./img/dh1.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: -60px;margin-left: 230px;">
<img src="./img/dh1.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: 40px;margin-left: 30px;">
<img src="./img/dh1.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: -60px;margin-left: 230px;">
<img src="./img/dh1.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
</div>
</li>
<li class="gdleft1"><a href="#"><span>电脑</span></a>
<span class="item">></span>
<div class="shouji">
<div style="width: 140px;height: 60px;background-color: white;margin-top: 40px;margin-left: 30px;">
<img src="./img/cen7.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: -60px;margin-left: 230px;">
<img src="./img/cen8.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: 40px;margin-left: 30px;">
<img src="./img/cen11.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列</p>
</div>
<div style="width: 140px;height: 60px;background-color: white;margin-top: -60px;margin-left: 230px;">
<img src="./img/cen10.jpg" alt="" width="60px" height="60px">
<p style="color: grey;font-size: 14px;padding-left: 60px;margin-top: -68px;">Mate系列