扫码关注官方订阅号
swiper的一个全屏滚动,其中一个slide中出了滚动条问题:滚动的时候swiper直接滚动到下一个slide了,怎么解决?目的:焦点在中间那个出滚动条的p中时,阻止swiper滚动
ringa_lee
var mySwiper = new Swiper('.swiper-container',{ mousewheelControl : true, //设置为true时,能使用鼠标滚轮控制slide滑动。 }) mySwiper.disableMousewheelControl(); //禁止鼠标滑轮控制 mySwiper.enableMousewheelControl(); //开启被disableMousewheelControl()禁止的鼠标滑轮控制
使用第三方插件的时候多看看他的文档API,都有说明的。
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
使用第三方插件的时候多看看他的文档API,都有说明的。