]; then add the relevant code to the body."/> ]; then add the relevant code to the body.">

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

How to remove scroll bar in html

coldplay.xixi
coldplay.xixiOriginal
2021-04-27 16:21:116486browse

How to remove the scroll bar in html: first add attributes to the html tag, the code is [89465486ad573015fa73a05a439cc2ed]; 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;">

2. Add the following code to the body

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

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!

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