Home> Web Front-end> uni-app> body text

A brief analysis of how uniapp makes a view scroll

PHPz
Release: 2023-04-06 14:27:24
Original
2476 people have browsed it

UniApp is a cross-platform development framework that can easily develop mobile applications. The scroll-view component can realize scrolling in a view. Let's introduce how to make a view scroll.

1. View the documentation

Before using the scroll-view component to implement view scrolling, we need to carefully read the introduction to scroll-view in the UniApp official documentation. In the documentation, we can learn about the role and implementation of the scroll-view component.

2. Use the scroll-view component

  1. In the Vue single file component, you need to add the scroll-view component in the
Copy after login
  1. Add content that needs to be scrolled in the tag, such as some text, pictures, etc.
  2. Use the uni.createSelectorQuery().select() method in the
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!