WeChat Open Platform

Mini Programs Documentation

View

View container

Attribute name Type Default value Description
hover-class String none Specifies style type when pressed. When hover-class="none" there are no tap status effects.
hover-start-time Number 50 How long it takes for tap status to appear after holding down, unit milliseconds
hover-stay-time Number 400 Amount of time tap status is maintained after finger is released, unit milliseconds

Example:

<view class="section">
  <view class="section__title">flex-direction: row</view>
  <view class="flex-wrp" style="flex-direction:row;">
    <view class="flex-item bc_green">1</view>
    <view class="flex-item bc_red">2</view>
    <view class="flex-item bc_blue">3</view>
  </view>
</view>
<view class="section">
  <view class="section__title">flex-direction: column</view>
  <view class="flex-wrp" style="height: 300px;flex-direction:column;">
    <view class="flex-item bc_green">1</view>
    <view class="flex-item bc_red">2</view>
    <view class="flex-item bc_blue">3</view>
  </view>
</view>

view

Bugs & Tips

  1. tip: Please use scroll-view if you need to use the scroll view.