当前位置:网站首页>A small part is exposed on one or both sides of the swiper
A small part is exposed on one or both sides of the swiper
2022-07-25 14:05:00 【Shepherd Wolf】
The effect is as follows :

First introduce swiper library :( Additional libraries attached , Choose... According to the actual situation )
$cssList = array(implode(",", array(
'//static2.51fanli.net/static/?f=webapp/css/base.css',
'common/libs/vant/index.css',
'common/libs/fmu/js/vendors/swiper/5.3.8/swiper.min.css',
'huodong/activity88904/css/index.css'
))
);
$jsList = array(implode(",", array(
'//static2.51fanli.net/static/?f=webapp/js/base.js',
'common/js/fanli/trace/ubt.js',
"common/libs/fmu/js/vendors/swiper/5.3.8/swiper.js",
'webapp/js/common/hybridapi/nativefunction_v2.js',
"common/libs/vmu/core/jquery.extend.js",
'common/libs/vant/index.js',
'common/libs/vmu/navtomini/1.0.0/nav-to-mini.vue.js',
'huodong/activity88904/js/index.js'
))
);html:
<div id="J_swipe_container" class="banner swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide J_swipe_slide" v-for="(item, index) in bannerList" :key="index">
<img :src="item.img" alt="" @click="handleBannerClick(item.link)">
</div>
</div>
<div class="swiper-pagination"></div>
</div>css:
.swiper-container {
height: 3.34rem !important;
}
.swiper-slide{
width: 6.7rem!important;
margin: 0 0.2rem;
}
.swiper-slide-next{
left: -0.2rem;
}js:
setTimeout(function () {
new Swiper('#J_swipe_container', {
loop: true,
slidesPerView: 'auto', // By default, one screen displays several graphs , must auto!
autoHeight: true,
autoplay: {
delay: 3000,
disableOnInteraction: true,
},
})
}, 500)边栏推荐
- Wangeditor rich text editor
- Interpretation of featdepth self-monitoring model for monocular depth estimation (Part 2) -- use of openmmlab framework
- CSV文本文件导入excel的四种方法
- leetcode--四数相加II
- CDA level1 double disk summary
- Practice of online problem feedback module (13): realize multi parameter paging query list
- @Classmethod decorator
- Sunfeng, general manager of Yixun: the company has completed the share reform and is preparing for IPO
- 应急科普|收好这份暑期安全指南,让孩子安全过暑假!
- Okaleido ecological core equity Oka, all in fusion mining mode
猜你喜欢

leetcode202---快乐数

如何设计一个高并发系统?

Data analysis business core

Construction and practice of yolov7 in hands-on teaching

Amd epyc 9664 flagship specification exposure: 96 core 192 threads 480MB cache 3.8ghz frequency
![【Platform IO编译Hifive1-revB】*** [.pio\build\hifive1-revb\src\setupGPIO.o] Error 1的解决办法](/img/a1/de197464e2a735d7ef012cea780da5.png)
【Platform IO编译Hifive1-revB】*** [.pio\build\hifive1-revb\src\setupGPIO.o] Error 1的解决办法

Engineering monitoring multi-channel vibrating wire sensor wireless acquisition instrument external digital sensor process

Comprehensive sorting and summary of maskrcnn code structure process of target detection and segmentation

Three ways of redis cluster

2271. Maximum number of white bricks covered by blanket ●●
随机推荐
MySQL and Navicat installation and stepping on pits
ADB connects to Xiaomi mobile phone via Wi Fi
Redux usage and analysis
如何设计一个高并发系统?
Comprehensive sorting and summary of maskrcnn code structure process of target detection and segmentation
AI model risk assessment Part 1: motivation
Mlops column introduction
Depth estimation self-monitoring model monodepth2 paper summary and source code analysis [theoretical part]
伯克利博士『机器学习工程』大实话;AI副总裁『2022 ML就业市场』分析;半导体创业公司大列表;大规模视频人脸属性数据集;前沿论文 | ShowMeAI资讯日报
CDA level Ⅰ 2021 new version simulation question 1 (with answers)
金鱼哥RHCA回忆录:CL210管理存储--对象存储
mysql 01: source命令
From fish eye to look around to multi task King bombing -- a review of Valeo's classic articles on visual depth estimation (from fisheyedistancenet to omnidet) (Part I)
NoSQL, relational database, row and column database comparison and analogy
Amd epyc 9664 flagship specification exposure: 96 core 192 threads 480MB cache 3.8ghz frequency
Working mode and sleep mode of nlm5 series wireless vibrating wire sensor acquisition instrument
CDA level1 double disk summary
How happy is the frisbee bureau? 2022 youth trendy Sports Report
「数字安全」警惕 NFT的七大骗局
Brush questions - luogu-p1089 Jinjin savings plan