Simple implementation of html hiding scroll bar

Simple implementation of html hiding scroll bar

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 >   

The above simple implementation of hiding the scroll bar in html is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

Original URL: http://www.cnblogs.com/rocky-fang/p/5633053.html

<<:  Three ways to implement waterfall flow layout

>>:  Example of using negative margin to achieve average layout in CSS

Recommend

CSS polar coordinates example code

Preface The project has requirements for charts, ...

RGBA alpha transparency conversion calculation table

Conversion between rgba and filter values ​​under...

Zabbix's psk encryption combined with zabbix_get value

Since Zabbix version 3.0, it has supported encryp...

Solution for front-end browser font size less than 12px

Preface When I was working on a project recently,...

7 native JS error types you should know

Table of contents Overview 1. RangeError 2. Refer...

Steps to set up and mount shared folders on Windows host and Docker container

Programs in Docker containers often need to acces...

Native JS realizes uniform motion of various sports

This article shares with you a uniform motion imp...

Nginx configuration and compatibility with HTTP implementation code analysis

Generate SSL Key and CSR file using OpenSSL To co...

Several common ways to deploy Tomcat projects [tested]

1 / Copy the web project files directly to the we...

Install mysql offline using rpm under centos 6.4

Use the rpm installation package to install mysql...

How to use CSS3 to implement a queue animation similar to online live broadcast

A friend in the group asked a question before, th...