提交 f37e643a 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新CSS示例

上级 8b26e9bb
<template>
<view style="flex-grow: 1;">
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;">
<text class="common">CSS测试 CSS测试 CSS测试</text>
<text class="common" style="line-height: 150rpx;">line-height: 150rpx</text>
<text class="common">CSS测试 CSS测试 CSS测试</text>
</view>
</view>
<view style="flex-grow: 1;">
<view style="height: 1000rpx;background-color: gray;justify-content: center;align-items: center;">
<text class="common">CSS测试 CSS测试 CSS测试</text>
<text class="common" style="line-height: 150rpx;">line-height: 150rpx</text>
<text class="common">CSS测试 CSS测试 CSS测试</text>
<text class="common" style="line-height: 3;">line-height: 3</text>
<text class="common">CSS测试 CSS测试 CSS测试</text>
<text class="common" style="line-height: 3em;">line-height: 3em</text>
<text class="common">CSS测试 CSS测试 CSS测试</text>
</view>
</view>
</template>
<script>
......@@ -13,7 +17,7 @@
</script>
<style>
.common {
font-size: 20px;
}
.common {
font-size: 20px;
}
</style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册