边框

image.png

  1. <view class="padding bg-white text-center">
  2. <view class="padding solid">四周</view>
  3. <view class="padding margin-top solid-top" ></view>
  4. <view class="padding margin-top solid-right" ></view>
  5. <view class="padding margin-top solid-bottom"></view>
  6. <view class="padding margin-top solid-left" ></view>
  7. </view>

阴影

image.png

        <view class="padding text-center">
            <view class="padding-xl radius shadow bg-white">默认阴影</view>
            <view class="padding-xl radius shadow bg-blue margin-top">根据背景颜色而改变的阴影</view>
            <view class="padding-xl radius shadow shadow-lg bg-white margin-top">长阴影</view>
            <view class="padding-xl radius shadow shadow-lg bg-blue margin-top">长阴影</view>
            <view class="padding-xl radius shadow-warp bg-white margin-top">翘边阴影</view>
            <view class="padding-xl radius shadow-blur bg-red margin-top bg-img" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big91005.jpg);">
                <view>根据背景图而改变的阴影</view>
            </view>
        </view>