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

更新text示例

上级 bc9327da
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<text>\\n 换行</text> <text>\\n 换行</text>
<text>\\\n 换行</text> <text>\\\n 换行</text>
<text>\n 换行 \\n 换行 \\\n 换行 \\\\n 换行 \\\\\n 换行</text> <text>\n 换行 \\n 换行 \\\n 换行 \\\\n 换行 \\\\\n 换行</text>
<text space="nbsp">HBuilderX,轻巧、极速,极客编辑器;\nuni-app x,终极跨平台方案;</text>
</view> </view>
<view class="uni-title"> <view class="uni-title">
...@@ -84,6 +85,17 @@ ...@@ -84,6 +85,17 @@
<text style="font-size: 50px">二级节点大字体</text> <text style="font-size: 50px">二级节点大字体</text>
</text> </text>
</view> </view>
<view class="uni-title">
<text class="uni-subtitle-text">padding</text>
</view>
<view class="text-box">
<text class="text-padding">hello uni-app x</text>
<text class="text-padding" style="width: 200px;">hello uni-app x</text>
<text class="text-padding" style="height: 100px;">hello uni-app x</text>
<text class="text-padding" style="width: 200px;height: 100px;">hello uni-app x</text>
</view>
</view> </view>
</scroll-view> </scroll-view>
</template> </template>
...@@ -118,4 +130,11 @@ export default { ...@@ -118,4 +130,11 @@ export default {
line-height: 54rpx; line-height: 54rpx;
text-align: center; text-align: center;
} }
.text-padding {
margin-top: 5px;
padding: 20px;
border: 1px solid red;
text-align: center;
}
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册