border-width.uvue 1.3 KB
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
<template>
  <!-- #ifdef APP -->
  <scroll-view style="flex: 1">
  <!-- #endif -->
    <view style="flex-grow: 1">
      <view>
        <text>border-width: 5px (without border-style)</text>
        <view class="common" style="border-width: 5px;"></view>
      </view>

      <view>
        <text>border-width: 5px</text>
        <view class="common" style="border-width: 5px; border-style: solid;"></view>
      </view>

      <view>
        <text>border-left-width: 5px</text>
        <view class="common" style="border-left-width: 5px; border-left-style: solid; "></view>
      </view>

      <view>
        <text>border-top-width: 10px</text>
        <view class="common" style="border-top-width: 10px; border-top-style: solid; "></view>
      </view>

      <view>
        <text>border-right-width: 15px</text>
        <view class="common" style="border-right-width: 15px; border-right-style: solid; "></view>
      </view>

      <view>
        <text>border-bottom-width: 20px</text>
        <view class="common" style="border-bottom-width: 20px; border-bottom-style: solid; "></view>
      </view>
    </view>
  <!-- #ifdef APP -->
  </scroll-view>
  <!-- #endif -->
</template>

<style>
  .common {
    width: 250px;
    height: 250px;
    background-color: gray;
  }
DCloud-WZF's avatar
DCloud-WZF 已提交
47
</style>