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

How to set scroll bar in uniapp

coldplay.xixi
Release: 2023-01-13 00:44:14
Original
12402 people have browsed it

Uniapp method to set scroll bars: Open the file [pages.json] and make relevant settings. The code is ["scrollIndicator":"none"]. scrollIndicator has two attributes [all and none], among which all Show, none hide.

How to set scroll bar in uniapp

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, thinkpad t480 computer.

Recommended (free): uni-app development tutorial

How to set the scroll bar in uniapp:

Set in pages.json

 "path" : "pages/client/user/shiyan3/shiyan3",
            "style" : {
"navigationBarTitleText":"",
"navigationBarTextStyle":"white",
"app-plus":{
  "scrollIndicator":"none",
  "titleNView":{
    "type":"float",
    "backgroundColor":"rgba(192,192,192,0)"
  }
}
}
Copy after login

Copy the following code and insert it

scrollIndicatorhas two attributes: all and none , where all is displayed and none is hidden

"scrollIndicator":"none"
Copy after login

Related free learning recommendations: Programming Video

The above is the detailed content of How to set scroll bar in uniapp. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
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!