关于贵网站view组件教程内容的遗漏,请贵网站补全。(如贴中view例子的class属性及值的解释)
发布于 5 年前 作者 sunyong 10379 次浏览 来自 问答

https://developers.weixin.qq.com/miniprogram/dev/component/view.html

关于贵网站view组件教程内容的遗漏,请贵网站补全。(如贴中view例子的class属性及值的解释)

<view class=“section”>

<view class=“section__title”>movable-view区域小于movable-area</view>

<movable-area style=“height: 200px; width: 200px; background: red;”>

<movable-view style=“height: 50px; width: 50px; background: blue;” x="{{x}}" y="{{y}}" direction=“all”>

</movable-view>

</movable-area>

<view class=“btn-area”>

<button size=“mini” bindtap=“tap”>click me to move to (30px, 30px)</button>

</view>

<view class=“section__title”>movable-view区域大于movable-area</view>

<movable-area style=“height: 100px; width: 100px; background: red;”>

<movable-view style=“height: 200px; width: 200px; background: blue;” direction=“all”>

</movable-view>

</movable-area>

<view class=“section__title”>可放缩</view>

<movable-area style=“height: 200px; width: 200px; background: red;” scale-area>

<movable-view style=“height: 50px; width: 50px; background: blue;” direction=“all” bindchange=“onChange” bindscale=“onScale” scale scale-min=“0.5” scale-max=“4” scale-value=“2”>

</movable-view>

</movable-area>

</view>

1 回复

是指class是啥的意思吗。?

回到顶部