padding.uvue 539 字节
Newer Older
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<template>
	<view style="flex-grow: 1;">
		<view>
			<text>padding: 50rpx</text>
			<view class="common" style="padding: 50rpx;">
				<view style="flex-grow: 1;background-color: red;"></view>
			</view>
		</view>

		<view style="width: 500rpx;">
			<text>padding: 10%</text>
			<view class="common" style="padding: 10%;">
				<view style="flex-grow: 1;background-color: red;"></view>
			</view>
		</view>
	</view>
</template>

<script>

</script>

<style>
	.common {
		width: 500rpx;
		height: 500rpx;
		background-color: gray;
	}
</style>