<template>
	<view>
		<!-- 顶部 -->
		<view class="uni-head">
			<view class="uni-head-title">
				scroll-view区域滚动视图
			</view>			
		</view>
		
		<view class="container">
			<view class="uni-title uni-common-mt">
				<view >	可滚动视图</view>
				<view >	横向视图</view>
			</view>
			<view class="">
				<scroll-view scroll-x="true" class="scroll-x" >
					<view class="scroll-view-item uni-bg-red">A</view>
					<view class="scroll-view-item uni-bg-blue">B</view>
					<view class="scroll-view-item uni-bg-green">C</view>
				</scroll-view>
			</view>
			<view class="uni-title uni-common-mt">
				<view >	可滚动视图</view>
				<view >	纵向滚动视图</view>
			</view>
			<view class="">
				<scroll-view scroll-y="true" class="scroll-y" >
					<view class="scroll-view-item1 uni-bg-red">A</view>
					<view class="scroll-view-item1 uni-bg-blue">B</view>
					<view class="scroll-view-item1 uni-bg-green">C</view>
				</scroll-view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	@import url('../../lib/smart.css');
	.scroll-x{
		/* 在同一行显示 */
		white-space: nowrap;  
		width: 100%%;
	}
	.scroll-y{
		height: 300rpx;
	}
	.scroll-view-item{
		display: inline-block;
		width: 100%;
		height: 300rpx;
		line-height: 300rpx;
		text-align: center;
	}
	.scroll-view-item1{
		width: 100%;
		height: 300rpx;
		line-height: 300rpx;
		text-align: center;
	}
</style>
