Home > Web Front-end > CSS Tutorial > How to remove scroll bar in css

How to remove scroll bar in css

青灯夜游
Release: 2023-01-05 16:13:43
Original
15785 people have browsed it

Removal method: 1. Use "::-webkit-scrollbar{display:none}" style to remove; 2. Use "-ms-overflow-style:none" style to remove; 3. Use "overflow: -moz-scrollbars-none" style removal.

How to remove scroll bar in css

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

css remove (hide) scroll bar

Use the pseudo-object selector of a custom scroll bar::-webkit-scrollbar. But this method is not compatible with IE. For mobile users, you can use

//谷歌适用
::-webkit-scrollbar{
    display:none;
}
Copy after login

IE 10

.element { -ms-overflow-style: none; }
Copy after login

Firefox

.element { overflow: -moz-scrollbars-none; }
Copy after login

Learning video sharing: css video tutorial

The above is the detailed content of How to remove scroll bar in css. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template