Home  >  Article  >  Web Front-end  >  Simple implementation of hiding scroll bars in html

Simple implementation of hiding scroll bars in html

高洛峰
高洛峰Original
2017-02-14 16:16:581577browse

1. Add attributes to html tag


##XML/HTML CodeCopy content to clipboard

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

2.Add the following code to the body


##XML/HTML Code

Copy the content to the clipboard

<

style type="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!

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