How to disable scrolling in html5

藏色散人
Release: 2021-11-10 14:20:57
Original
2569 people have browsed it

How to disable scrolling in html5: 1. Create a new index.html page; 2. Add a style control "style="overflow:hidden"" to the body of the html page.

How to disable scrolling in html5

The operating environment of this article: windows7 system, HTML5 version, DELL G3 computer

html5 How to disable scrolling?

First create a new index.html page to simulate the demonstration

How to disable scrolling in html5

Prepare a large amount of data in the body to facilitate the display of scroll bars

How to disable scrolling in html5

Open it in the browser and you can see the vertical scroll bar

How to disable scrolling in html5

Add a style control style to the body of the html page ="overflow:hidden", save after adding

How to disable scrolling in html5

Refresh the previously displayed interface in the browser

How to disable scrolling in html5

Refresh After that, you can see that the scroll bar is no longer displayed and the interface is prohibited from scrolling

How to disable scrolling in html5

Recommended study: "HTML Video Tutorial"

The above is the detailed content of How to disable scrolling in html5. 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