最近模仿的honor官网轮播图和显示按钮的进度条效果,bug依然存在,请多指教。
以下是效果图:
最后奉上代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
<style type="text/css">
*{
margin: 0;
padding: 0;
}
/* 这是显示窗口 */
.main-wheel{
width: 1250px;
height: 550px;
/* border: 1px solid; */
overflow: hidden;/*超出窗口部分隐藏*/
position: relative;
margin: 0 auto;
}
.main-wheel button{
position: absolute;
width: 50px;
height: 60px;
top: 250px;
z-index: 900;
border: none;
outline: none;
background-color:#000;
opacity: .05;
color: #fff;