打开/关闭搜索
搜索
打开/关闭菜单
39
303
27
983
植物大战僵尸杂交版Wiki
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
打开/关闭外观设置菜单
notifications
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
本Wiki为杂交版民间Wiki,不对杂交版官方产生影响
Wiki制作组招募群号:633922116
查看“︁微件:Swiper”︁的源代码
来自植物大战僵尸杂交版Wiki
查看
阅读
查看源代码
查看历史
associated-pages
微件
讨论
更多操作
←
微件:Swiper
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您没有权限编辑
微件
命名空间内的页面。
您可以查看和复制此页面的源代码。
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"> <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script> <style> .pvzhe-swiper{width:100%;height:auto;position:relative;margin:0 auto;user-select:none}.pvzhe-swiper .swiper-wrapper{height:auto}.pvzhe-swiper .swiper-slide{display:flex;align-items:center;justify-content:center}.pvzhe-swiper .swiper-slide img{width:100%;height:auto;display:block;object-fit:cover}.pvzhe-swiper .swiper-button-prev,.pvzhe-swiper .swiper-button-next{color:#fff;z-index:10;cursor:pointer;pointer-events:auto}.pvzhe-swiper .swiper-pagination-bullet-active{background:#fff}.pvzhe-swiper .swiper-pagination{padding-top:10px} </style> <script> RLQ.push(['jquery', function() { requestAnimationFrame(function() { $('.pvzhe-swiper').each(function(i, el) { if ($(el).data('swiper-init')) return; var opts = {}; try { opts = JSON.parse($(this).attr('data-swiper-options') || '{}'); if (opts.pagination?.el && typeof opts.pagination.el === 'string') { opts.pagination.el = $(el).find(opts.pagination.el)[0]; } if (opts.navigation?.prevEl && typeof opts.navigation.prevEl === 'string') { opts.navigation.prevEl = $(el).find(opts.navigation.prevEl)[0]; } if (opts.navigation?.nextEl && typeof opts.navigation.nextEl === 'string') { opts.navigation.nextEl = $(el).find(opts.navigation.nextEl)[0]; } } catch (e) { return; } try { var swiper = new Swiper($.extend({ el: el }, opts)); $(el).data('swiper-init', true); mw.pvzhe = mw.pvzhe || {}; (mw.pvzhe.swipers = mw.pvzhe.swipers || []).push(swiper); } catch (e) {} }); }); }]); </script>
返回
微件:Swiper
。
查看“︁微件:Swiper”︁的源代码
来自植物大战僵尸杂交版Wiki