• 微信小程序scroll标签的测试


    一:testscroll.wxml的代码如下。testview.js自动生成示例代码

    //testscroll.wxml
    
      <view class="section__title">横向滚动</view>
      <scroll-view scroll-x="true" style="height:240px;white-space:nowrap">
        <view  class="scroll-view-item-x bc_green">视图一</view>
        <view  class="scroll-view-item-x bc_red">视图二</view>
        <view  class="scroll-view-item-x bc_yellow">视图三</view>
      </scroll-view>
    
    
    
      <view class="section__title">纵向滚动</view>
      <scroll-view scroll-y="true" style="height:240px">
        <view  class="scroll-view-item-y bc_green">视图一</view>
        <view  class="scroll-view-item-y bc_red">视图二</view>
        <view  class="scroll-view-item-y bc_yellow">视图三</view>
      </scroll-view>
    

    二:testscroll.wxss

    //testscroll.wxss
    .scroll-view-item-x{
      height: 240px;
       240px;
      display:inline-block;
    }
    .bc_green{
      background-color: green;
    }
    .bc_red{
      background-color: red;
    }
    .bc_yellow{
      background-color: yellow;
    }
    
    .scroll-view-item-y{
      height: 240px;
    }
    

    三:app.json上配置页面路径,效果如下

  • 相关阅读:
    extjs数据类型
    Extjs 动态控制列显示
    400
    extjs主单清单同时编辑提交
    js-map模拟
    Leetcode 407.接雨水
    Leetcode 406.根据身高重建队列
    Leetcode 405.数字转化为十六进制数
    Leetcode 402.移掉k位数字
    Leetcode 401.二进制手表
  • 原文地址:https://www.cnblogs.com/hts-technology/p/7268759.html
Copyright © 2020-2023  润新知