<scroll-view scroll-x="true" enable-flex="true" class="list">
<view>
<text>你好</text>
<text>你不好</text>
</view>
</scroll-view>
.list{
width:100%;
white-space:nowrap;
margin:20rpx 0;
height:120rpx;
}
.listview{
display: inline-block;
margin:0 15rpx;
font-size:28rpx;
color:#333333;
background:#fff;
border-radius: 10rpx;
padding:20rpx 40rpx;
text-align:center;
}
.listtext{
display: block;
line-height: 40rpx;
}