Simple implementation of hiding scroll bars in html

高洛峰
Release: 2017-02-14 16:16:58
Original
1511 people have browsed it

1. Add attributes to html tag


##XML/HTML CodeCopy content to clipboard

<htmllang="en"class="no-ie"style="overflow:hidden;">

2.Add the following code to the body


##XML/HTML Code

Copy the content to the clipboard

<

styletype="text/css">html{

overflow-x: hidden;

overflow-y: hidden;

##

style

>

The simple implementation of the above html hidden scroll bar is a small I have compiled all the content shared with you. I hope it can give you a reference. I also hope that everyone will support the PHP Chinese website.For more articles related to the simple implementation of html hidden scroll bars, please pay attention to 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!