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.
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
scrollIndicator
has 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!