Home  >  Article  >  Web Front-end  >  How to set scroll bar in uniapp

How to set scroll bar in uniapp

coldplay.xixi
coldplay.xixiOriginal
2020-12-09 11:15:3412422browse

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 the following code and insert it

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

"scrollIndicator":"none"

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!

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