提交 b5c380fd 编写于 作者: DCloud-yyl's avatar DCloud-yyl

web端与app端截图差异优化:限定text的宽度

上级 47cbb6ff
......@@ -12,7 +12,7 @@
style="width: 50px; height: 50px; background-color: red"
></view>
<view class="common" style="position: relative">
<text>relative</text>
<text class="text">relative</text>
</view>
<view
style="width: 50px; height: 50px; background-color: blue"
......@@ -47,7 +47,7 @@
style="width: 50px; height: 50px; background-color: red"
></view>
<view class="common" style="position: absolute">
<text>absolute</text>
<text class="text">absolute</text>
</view>
<view
style="width: 50px; height: 50px; background-color: blue"
......@@ -82,7 +82,7 @@
style="width: 50px; height: 50px; background-color: red"
></view>
<view class="common fixed" style="position: fixed">
<text>fixed</text>
<text class="text">fixed</text>
</view>
<view
style="width: 50px; height: 50px; background-color: blue"
......@@ -131,4 +131,8 @@
/* #endif */
}
.text {
white-space: nowrap;
width: 100%;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册