border-width.uvue 1.1 KB
Newer Older
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
1
<template>
DCloud-WZF's avatar
DCloud-WZF 已提交
2 3 4 5 6 7
  <!-- #ifdef APP -->
  <scroll-view style="flex: 1">
    <!-- #endif -->
    <view style="flex-grow: 1">
      <view>
        <text>border-width: 10rpx</text>
xuty73419315's avatar
xuty73419315 已提交
8
        <view class="common" style="border-width: 10rpx; border-style: solid;"></view>
DCloud-WZF's avatar
DCloud-WZF 已提交
9 10 11 12
      </view>

      <view>
        <text>border-left-width: 10rpx</text>
xuty73419315's avatar
xuty73419315 已提交
13
        <view class="common" style="border-left-width: 10rpx; border-left-style: solid; "></view>
DCloud-WZF's avatar
DCloud-WZF 已提交
14
      </view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
15

DCloud-WZF's avatar
DCloud-WZF 已提交
16 17
      <view>
        <text>border-top-width: 20rpx</text>
xuty73419315's avatar
xuty73419315 已提交
18
        <view class="common" style="border-top-width: 20rpx; border-top-style: solid; "></view>
DCloud-WZF's avatar
DCloud-WZF 已提交
19
      </view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
20

DCloud-WZF's avatar
DCloud-WZF 已提交
21 22
      <view>
        <text>border-right-width: 30rpx</text>
xuty73419315's avatar
xuty73419315 已提交
23
        <view class="common" style="border-right-width: 30rpx; border-right-style: solid; "></view>
DCloud-WZF's avatar
DCloud-WZF 已提交
24 25 26 27
      </view>

      <view>
        <text>border-bottom-width: 40rpx</text>
xuty73419315's avatar
xuty73419315 已提交
28
        <view class="common" style="border-bottom-width: 40rpx; border-bottom-style: solid; "></view>
DCloud-WZF's avatar
DCloud-WZF 已提交
29 30 31 32 33 34
      </view>
    </view>
    <!-- #ifdef APP -->
  </scroll-view>
  <!-- #endif -->
</template>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
35 36

<style>
DCloud-WZF's avatar
DCloud-WZF 已提交
37 38 39 40 41 42
.common {
  width: 500rpx;
  height: 500rpx;
  background-color: gray;
}
</style>