|
因为项目需要触摸效果,才知道有这个插件,将它放在项目上后,我发现ios的所有浏览器都OK。但是在安卓上,我几乎是测试了3个手机都显示不出效果。求解。。。真的不知道该怎么解决。是因为我代码的原因还是什么吗?- <div class="top-fixed">
- <div class="dogschool-cj"><img src="/img/doghschool.jpg"/><div class="cj-txt"><i><p>养宠学堂</p>解决你作为养狗新手的头疼问题</i></div></div>
- <div class="swiper-container">
- <div class="swiper-wrapper">
- <a href="#yypc" class="swiper-slide">营养配餐</a>
- <a href="#jkfy:" class="swiper-slide">健康防疫</a>
- <a href="#xwjd" class="swiper-slide">行为解读</a>
- <a href="#szrz" class="swiper-slide">随主入住</a>
- <a href="#sxhl" class="swiper-slide">梳洗护理</a>
- <a href="#znxl" class="swiper-slide">智能训练</a>
- </div>
- </div>
- </div>
复制代码- <script type="text/javascript" src="/js/swiper.min.js"></script>
- <link rel="stylesheet" type="text/css" href="/css/swiper.min.css"/>
- <link rel="stylesheet" type="text/css" href="/css/dogschool.css"/>
复制代码- var swiper = new Swiper('.swiper-container', {
- slidesPerView:3,
- centeredSlides: false,
- paginationClickable: false,
- spaceBetween: 30
- });
复制代码- .swiper-slide{height: 35px;line-height: 35px;display: inline-block;text-align: center;color: #ffffff;background: #333847;margin: 0!important;}
- .swiper-container{background: #333847;}
复制代码 唯一修改的就是.swiper-slide和.swiper-container这2个类的css了。所有CSS,js,html都传上来了。希望得到帮助! |
|