How to hide and remove scroll bars in HTML

How to hide and remove scroll bars in HTML

1. HTML tags with attributes

XML/HTML CodeCopy content to clipboard
  1. < html   lang = "en"   class = "no-ie"   style = "overflow:hidden;" >    

2. Add the following code to body

XML/HTML CodeCopy content to clipboard
  1. < style   type = "text/css" >      
  2. html{
  3. overflow-x:hidden;
  4. overflow-y: hidden;
  5. }
  6. </ style >  

How to remove scroll bar from html page

In order to prevent the previous css file from overwriting the body style

Write a css directly in html

XML/HTML CodeCopy content to clipboard
  1. < span   style = "font-size:24px;" > < style   type = "text/css" >      
  2. body{
  3. overflow-x:hidden;
  4. overflow-y: hidden;
  5. }
  6. </ style > </ span >    

This way there is no scroll bar

The above is the HTML code for hiding and removing scroll bars that I introduced to you. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

<<:  Detailed steps to use Arthas in a Docker container

>>:  MySQL 8.0 upgrade experience

Recommend

How to configure the My.ini file when installing MySQL5.6.17 database

I recently used the MySql database when developin...

js canvas to realize the Gobang game

This article shares the specific code of the canv...

MySql development of automatic synchronization table structure

Development Pain Points During the development pr...

Detailed use cases of MySql escape

MySQL escape Escape means the original semantics ...

MySQL series 9 MySQL query cache and index

Table of contents Tutorial Series 1. MySQL Archit...

Understanding MySQL index pushdown in five minutes

Table of contents What is index pushdown? The pri...

Linux system MySQL8.0.19 quick installation and configuration tutorial diagram

Table of contents 1. Environment Introduction 2. ...

MySQL: Data Integrity

Data integrity is divided into: entity integrity,...

JavaScript css3 to implement simple video barrage function

This article attempts to write a demo to simulate...

How to uninstall MySQL 5.7.19 under Linux

1. Find out whether MySQL was installed before Co...

Analysis of mysql view functions and usage examples

This article uses examples to illustrate the func...

Encapsulate a simplest ErrorBoundary component to handle react exceptions

Preface Starting from React 16, the concept of Er...

Analyze the difference between computed and watch in Vue

Table of contents 1. Introduction to computed 1.1...