Home >WeChat Applet >Mini Program Development >How to use the scroll-view component to implement vertical scrolling of views

How to use the scroll-view component to implement vertical scrolling of views

高洛峰
高洛峰Original
2017-03-03 10:30:432850browse

In the previous article, I believe that everyone has a certain understanding of scroll-view. I will teach you: How to implement scroll-view to hide scroll bars in WeChat applet and also demonstrate some methods of hiding scroll bars. Today I want to introduce to you how to use the scroll-view component to achieve vertical scrolling of the view. First, the effect is shown as follows:

How to use the scroll-view component to implement vertical scrolling of views

Secondly, part of the code is demonstrated as follows:

<view>
    <scroll-view style="height:60px; color:black; background-color: lightblue;" scroll-y="true">
        <view>微信小程序开发社区</view>
        <view>作者:51小程序</view>
        <view>HTML51.COM</view>
    </scroll-view>
</view>

More related articles on how to use the scroll-view component to achieve vertical scrolling of views Please pay attention to PHP Chinese website!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn