swiper实现产品服务列表拖动轮换轮播分页效果代码
代码语言:html
所属分类:幻灯片
代码描述:swiper实现产品服务列表拖动轮换轮播分页效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!--swiper框架样式-->
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/swiper.min.css">
<!--主要样式-->
<style>
@charset "utf-8";
* {
padding: 0;
margin: 0;
font-family: "微软雅黑";
box-sizing: inherit;
outline: none;
}
:after, :before {
box-sizing: inherit;
}
a {
text-decoration: none;
color: inherit;
}
ul {
list-style: none;
}
body{
background-color: #313131
}
.pc-bg-container {
background-position: 50% 50%;
background-size: cover;
background-repeat: no-repeat;
}
.home-market-section {
text-align: center;
background-color: #0057b1;
}
/*标题*/
.home-market-section .section-title {
margin-bottom: 30px;
font-size: 30px;
min-width: 150px;
text-align: left;
color: #F8F8F8;
display: inline-block;
position: relative;
border: none;
height: 42px;
line-height: 42px;
padding-left: 10px;
margin-top: 60px;
}
.home-market-section .section-title a {
width: 100%;
display: block;
position: relative;
}
.home-market-section .section-title a:before {
position: absolute;
content: '';
right: -12px;
width: 15px;
height: 15px;
background-repeat: no-repeat;
top: 50%;
transform: translate(0, -50%);
transition: .2s;
}
.home-market-section .section-title a:hover:before {
right: -16px;
}
/*内容盒子*/
.home-market-section .section-inner {
position: relative;
max-width: 1280px;
margin: 0 auto;
}
.home-market-section .section-inner .swiper-container {
height: 364px;
max-width: 1230px;
}
.home-market-section .section-inner .swiper-container .swiper-wrapper {
align-items: center;
height: 279px!important;
}
/*内容列表*/
.home-market-section .section-inner .swiper-container .swiper-wrapper .swiper-slide {
height: 279px!important;
background: 0 0;
padding: 0 50px;
box-sizing: border-box;
text-align: center;
}
.home-market-section .section-inner .swiper-container .swiper-wrapper .swiper-slide>a {
display: block;
float: left;
position: relative;
background-color: #fff;
border: 1px solid rgba(201,164,103,.2);
width: calc((100% - 60px)/ 4);
padding: 45px 25px 0;
height: 100%;
margin-right: 20px;
border-radius: 5px;
}
.home-market-section .section-inner .swiper-container .swiper-wrapper .swiper-slide>a:hover {
box-shadow: 0 10px 40px rgba(0,0,0,0.30);
border: 2.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0