微信小程序 教程之wxapp视图容器 swiper

(编辑:jimmy 日期: 2024/10/2 浏览:2)

相关文章:

  1. 微信小程序 教程之wxapp视图容器 swiper
  2. 微信小程序 教程之wxapp视图容器 scroll-view
  3. 微信小程序 教程之wxapp 视图容器 view

微信小程序视图容器:swiper

"box-sizing: border-box; word-wrap: break-word; white-space: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-align: left; font: 14px/2 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', 黑体, Arial, sans-serif; margin: 0px 0px 0.85em; orphans: 3; widows: 3; letter-spacing: 0px; background-color: rgb(255,255,255); text-indent: 20px; -webkit-text-stroke-width: 0px; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased">"color: #ff0000">注意:其中只可放置swiper-item组件,其他节点会被自动删除

swiper-item

仅可放置在swiper组件中,宽高自动设置为100%

示例代码:

<swpier indicator-dots="{{indicatorDots}}"
 autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
 <block wx:for-items="{{imgUrls}}">
 <swpier-item>
  <image src="/UploadFiles/2021-04-02/{{item}}">

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!