zoukankan      html  css  js  c++  java
  • 微信小程序之滚动图片

    1.用到的API

    2.wxml

    <view>
      <swiper class="swiper" autoplay="true" interval="2000" >
        <swiper-item>
          <image src="/images/post/xiaolong.jpg"></image>
        </swiper-item>
        <swiper-item>
          <image src="/images/post/vr.png"></image>
        </swiper-item>
        <swiper-item>
          <image src="/images/post/sls.jpg"></image>
        </swiper-item>
    
      </swiper>
    
    </view>
    

      

    3.wxss

    /* pages/posts/post.wxss */
    swiper {
    
     100%;
    height: 600rpx;
    }
    swiper image{
     100%;
    height: 600rpx;
    
    }
    

      

    4.设置路径

    {
      "pages": [
        "pages/posts/post",
        "pages/welcome/welcome"
        
       
      ],
      "window": {
        "navigationBarBackgroundColor": "#b3d4db"
    }
    }
    

      

  • 相关阅读:
    RabbitMq
    SAAS-HEM
    java框架
    数据结构
    JVM
    springboot高级
    面试题汇总
    vue
    bootforum
    SpringBoot
  • 原文地址:https://www.cnblogs.com/liushisaonian/p/9496884.html
Copyright © 2011-2022 走看看