微信小程序scroll-view和组件

scroll-view的css样式很坑   按照下边这个

.scroll-view_H{

  white-space: nowrap;

}

.scroll-view-item{

  height: 200px;

}

.scroll-view-item_H{

  display: inline-block;

  width: 100%;

  height: 200px;

}

scroll-view组件上可以用bindscroll判断拉动距离

小程序的正常页面是page({}),如果想用component 需要在当前目录的json中 进行配置

{
                 "component": true,
                 "usingComponents": {}
}

猜你喜欢

转载自blog.csdn.net/qq_41619567/article/details/83271448