uniapp得横向滚动组件

	 
		A
		B
		C
	


**css**

  .uni-bg-red{
		background: red;
	}
	.uni-bg-green{
		background: green;
	}
	.uni-bg-blue{
		background: blue;
	}
	.scroll-view-item_H{
		display: inline-block;
		width: 150px;
		height: 150px;
		padding-left: 10rpx;
		text-align: center;
	}

  **js**
  
   scroll: function(e) {
            console.log(e)
            this.old.scrollTop = e.detail.scrollTop
        },

你可能感兴趣的:(2019/1219)