<movable-area style="height: 200px;width: 200px;background: red;">
<movable-view direction="all" style="height: 50px; width: 50px; background: blue;">
</movable-view>
<movable-view direction="horizontal" style="height: 20px; width: 50px; background: yellow;">
</movable-view>
</movable-area>
movable-view的direction属性支持以下四个值:
all :任意方向拖动
vertical : 纵向拖动
horizontal : 横向拖动
none : 不能拖动
网友评论