Home > Web Front-end > HTML Tutorial > How to remove scroll bar in html

How to remove scroll bar in html

coldplay.xixi
Release: 2023-01-05 16:12:01
Original
6506 people have browsed it

How to remove the scroll bar in html: first add attributes to the html tag, the code is [<html style="overflow:hidden;">]; then add the relevant code to the body.

How to remove scroll bar in html

The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.

How to remove the scroll bar in html:

1. Add attributes to the html tag

<html style="overflow:hidden;">
Copy after login

2. Add the following code to the body

<style type="text/css">  
html{  
    overflow-x: hidden;  
    overflow-y: hidden;  
}  
</style>
Copy after login

Related learning recommendations: html video tutorial

The above is the detailed content of How to remove scroll bar in html. 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