How to cancel scroll bar in html

藏色散人
Release: 2023-01-06 11:15:31
Original
5296 people have browsed it

htmlHow to cancel the scroll bar: 1. Cancel the vertical scroll bar through "overflow-y:hidden"; 2. Cancel the horizontal scroll bar through "overflow-x:hidden".

How to cancel scroll bar in html

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, DELL G3 computer

Remove the scroll bar from the html page

Sometimes it is particularly necessary. Some web pages need to remove the horizontal scroll bar and vertical scroll bar. How to remove it? It is very simple. Look at the code:

Let there be no vertical bars:

 
Copy after login

Let the horizontal bar disappear:

 
Copy after login

The scroll bar at the bottom of Firefox does not display:

html { overflow:-moz-scrollbars-vertical; }
Copy after login

Have time to study the full screen

Recommended learning: "HTML video tutorial"

The above is the detailed content of How to cancel 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!