height.uvue 383 字节
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>height: 250px</text>
			<view class="common" style="height: 250px;"></view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
6 7
		</view>

DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
8
		<view style="height: 250px;">
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
9 10 11 12 13 14 15 16 17 18 19 20
			<text>height: 50%</text>
			<view class="common" style="height: 50%;"></view>
		</view>
	</view>
</template>

<script>

</script>

<style>
	.common {
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
21
		width: 250px;
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
22 23 24
		background-color: red;
	}
</style>