Home>Article>Web Front-end> How to hide the right scroll bar in uniapp

How to hide the right scroll bar in uniapp

coldplay.xixi
coldplay.xixi Original
2020-12-15 16:26:42 7819browse

Uniapp method to hide the right scroll bar: 1. Externally link [base.css] in the style of [app.vue]; 2. Use conditional compilation directly in [app.vue], which can be based on Different platforms control the properties of different tags.

How to hide the right scroll bar in uniapp

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

Recommended (free):uni-app development tutorial

How to hide the scroll bar on the right side of uniapp:

1 . Externally link base.css in the style of app.vue. This method is more suitable to control all scroll bars.

In base.css

::-webkit-scrollbar{ display: none; }

2. Directly in app.vue Conditional compilation is used inside, and the attributes of different tags can be controlled according to different platforms

Related free learning recommendations:Programming Video

The above is the detailed content of How to hide the right 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