当前位置:网站首页>Wechat applet swiper simple local picture display appears large blank

Wechat applet swiper simple local picture display appears large blank

2022-06-25 19:54:00 JINYUBAOO

Question picture  Insert picture description here
This large blank slide
My code :

<view>
    <swiper class="swiper-view"
            indicator-dots="true"autoplay="true" 
            interval="2000"  circular="true"
            indicator-color="#ccc" indicator-active-color="#fff">
      <swiper-item class="swiper-image">
        <image src="/images/1.jpg"></image>
      </swiper-item>
      <swiper-item class="swiper-image">
        <image src="/images/2.jpg"></image>
      </swiper-item>
      <swiper-item class="swiper-image">
          <image src="/images/3.jpg"></image>
      </swiper-item>
    </swiper>
  </view>

There seems to be no problem , Thought there was a problem with the settings
Look at the official documents
swiper| Wechat development documents
ok, Every sentence has no problem . So check it out WXML
 Insert picture description here
Delete view Perfect solution or give view Add class
 Insert picture description here
Query parent element

原网站

版权声明
本文为[JINYUBAOO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202190513498503.html