border-style.uvue 1.3 KB
Newer Older
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
1
<template>
DCloud-WZF's avatar
DCloud-WZF 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
  <!-- #ifdef APP -->
  <scroll-view style="flex: 1">
    <!-- #endif -->
    <view style="flex-grow: 1">
      <view>
        <text>border-style: dashed</text>
        <view
          class="common"
          style="border-width: 10rpx; border-style: dashed"
        ></view>
      </view>

      <view>
        <text>border-left-style: dashed</text>
        <view
          class="common"
          style="border-left-width: 10rpx; border-left-style: dashed"
        ></view>
      </view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
21

DCloud-WZF's avatar
DCloud-WZF 已提交
22 23 24 25 26 27 28
      <view>
        <text>border-top-style: dashed</text>
        <view
          class="common"
          style="border-top-width: 10rpx; border-top-style: dashed"
        ></view>
      </view>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
29

DCloud-WZF's avatar
DCloud-WZF 已提交
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
      <view>
        <text>border-right-style: dotted</text>
        <view
          class="common"
          style="border-right-width: 10rpx; border-right-style: dotted"
        ></view>
      </view>

      <view>
        <text>border-bottom-style: dotted</text>
        <view
          class="common"
          style="border-bottom-width: 10rpx; border-bottom-style: dotted"
        ></view>
      </view>
    </view>
    <!-- #ifdef APP -->
  </scroll-view>
  <!-- #endif -->
</template>
DCloud-yinjiacheng's avatar
DCloud-yinjiacheng 已提交
50 51

<style>
DCloud-WZF's avatar
DCloud-WZF 已提交
52 53 54 55 56 57
.common {
  width: 500rpx;
  height: 500rpx;
  background-color: gray;
}
</style>