Html:
<div class="home-row-left content-area ">
<div id="html-box-lg" class="html-box">
<div class="sort mobile-hidden">
<!-- 专题 -->
<div class="sort-swiper-container swiper-container swiper-container-initialized swiper-container-horizontal">
<div class="swiper-wrapper" style="transition-duration: 0ms; transform: translate3d(-1178px, 0px, 0px);">
<ul class="sort-config swiper-slide swiper-slide-duplicate swiper-slide-prev swiper-slide-duplicate-next"
data-swiper-slide-index="1" style="width: 1178px;">
<li>
</li>
</ul>
<ul class="sort-config swiper-slide swiper-slide-active" data-swiper-slide-index="0" style="width: 1178px;">
<li>
<a class="sort-config-item" href="#">
<img class="sort-config-icon" src="/images/10019.png" alt="">
<p class="sort-config-title">文章资讯</p><span class="sort-config-desc">查看前沿资讯</span>
</a>
</li>
<li>
<a class="sort-config-item" href="#">
<img class="sort-config-icon" src="/images/100255.png" alt="">
<p class="sort-config-title">资源中心
</p><span class="sort-config-desc">下载最新资源</span>
</a>
</li>
<li>
<a class="sort-config-item" href="#">
<img class="sort-config-icon" src="/images/10027.png" alt="">
<p class="sort-config-title">官方商城</p><span class="sort-config-desc">咕噜优选商城</span>
</a>
</li>
<li>
<a class="sort-config-item" href="#">
<img class="sort-config-icon" src="/images/VIP.png" alt="">
<p class="sort-config-title">开通会员</p><span class="sort-config-desc">畅享所有服务</span>
</a>
</li>
<li>
<a class="sort-config-item" href="#">
<img class="sort-config-icon" src="/images/10025.png" alt="">
<p class="sort-config-title">官方认证</p><span class="sort-config-desc">认证赚取佣金</span>
</a>
</li>
<li>
<a class="sort-config-item" href="#">
<img class="sort-config-icon" src="/images/10020.png" alt="">
<p class="sort-config-title">网络服务</p><span class="sort-config-desc">专业网络服务</span>
</a>
</li>
</ul>
</div><span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>
</div>
</div>
</div>
</div>
Css:
.home-row-left.content-area {
width: 100%!important;
height: auto;
border-radius: 0;
max-width: 100%;
}
.sorts {
position: relative;
top: -40px;
z-index: 3;
padding: 30px;
background: hsla(0, 0%, 100%, .96);
border: 1px solid #fff;
-webkit-box-shadow: 0 40px 75px 0 rgb(57 60 67 / 8%);
box-shadow: 0 40px 75px 0 rgb(57 60 67 / 8%);
border-radius: 20px;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
.sort-config-next, .sort-config-next .sort-next-wrap {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.swiper-container {
margin-left: auto;
margin-right: auto;
position: relative;
overflow: hidden;
list-style: none;
padding: 0;
z-index: 1;
}
.sort-swiper-container {
position: relative;
overflow: hidden;
height: 62px;
}
.swiper-wrapper {
position: relative;
width: 100%;
height: 100%;
z-index: 1;
display: flex;
transition-property: transform;
box-sizing: content-box;
}
.sort-config {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.swiper-slide {
flex-shrink: 0;
width: 100%;
height: 100%;
position: relative;
transition-property: transform;
}
ul.sort-config.swiper-slide.swiper-slide-active {
margin-left: 8px;
}
.sort-config {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.swiper-slide {
flex-shrink: 0;
width: 100%;
height: 100%;
position: relative;
transition-property: transform;
}
.sort-config>li {
width: 16.66667%;
overflow: hidden;
height: 100%;
}
.sort-config-item {
display: block;
height: 100%;
}
.thumb, a, a:active, a:visited {
-webkit-transition: all .2s;
-o-transition: all .2s;
transition: all .2s;
}
.sort-config-icon, .sort-config-title {
float: left;
-webkit-transition: .3s;
transition: .3s;
}
.sort-config-icon {
width: 62px !important;
height: 62px;
margin-right: 12px;
}
.sort-config-title {
position: relative;
line-height: 34px;
font-size: 18px;
font-weight: 600;
color: #2d2d2d;
}
.sort-config-icon, .sort-config-title {
float: left;
-webkit-transition: .3s;
transition: .3s;
}
.sort-config-desc {
float: left;
line-height: 22px;
font-size: 14px;
color: #8e8e8e;
-webkit-transition: .3s;
transition: .3s;
}
.swiper-container .swiper-notification {
position: absolute;
left: 0;
top: 0;
pointer-events: none;
opacity: 0;
z-index: -1000;
}
.sort-config-item:hover .sort-config-desc, .sort-config-item:hover .sort-config-title {
color: #3478f7;
}