Home >Web Front-end >HTML Tutorial >html hide scroll bar

html hide scroll bar

WBOY
WBOYOriginal
2016-07-06 13:28:221329browse

1. Add attributes to html tag

<html lang=<span style="color: #800000;">"</span><span style="color: #800000;">en</span><span style="color: #800000;">"</span> <span style="color: #0000ff;">class</span>=<span style="color: #800000;">"</span><span style="color: #800000;">no-ie</span><span style="color: #800000;">"</span> <span style="color: #ff0000;">style="overflow:hidden;"</span>>

Add the following code to 2.body

<style type=<span style="color: #800000;">"</span><span style="color: #800000;">text/css</span><span style="color: #800000;">"</span>><span style="color: #000000;">  
html{  
    overflow</span>-<span style="color: #000000;">x: hidden;  
    overflow</span>-<span style="color: #000000;">y: hidden;  
}  
</span></style>

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