Home >Web Front-end >Front-end Q&A >How to disable scrolling in html5

How to disable scrolling in html5

藏色散人
藏色散人Original
2021-11-10 14:20:572606browse

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!

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