margin-left.uvue 800 字节
Newer Older
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
1 2 3
<template>
	<view style="flex-grow: 1;">
		<view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
4 5
			<text>margin-left: 25px</text>
			<view style="width: 250px;height: 250px;background-color: gray;">
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
6
				<view class="common" style="background-color: red;"></view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
7
				<view class="common" style="margin-left: 25px;"></view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
8 9 10 11 12 13
				<view class="common" style="background-color: blue;"></view>
			</view>
		</view>

		<view>
			<text>margin-left: 10%</text>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
14
			<view style="width: 250px;height: 250px;background-color: gray;">
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
15 16 17 18 19 20 21 22 23 24 25 26 27 28
				<view class="common" style="background-color: red;"></view>
				<view class="common" style="margin-left: 10%;"></view>
				<view class="common" style="background-color: blue;"></view>
			</view>
		</view>
	</view>
</template>

<script>

</script>

<style>
	.common {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
29
		height: 50px;
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
30 31 32
		background-color: green;
	}
</style>