开发者

disable scroll bar in IE [duplicate]

This question already has answers here: Closed 10 years ago. 开发者_开发百科

Possible Duplicate:

Disable browsers vertical and horizontal scrollbars

Can I disable vertical scroll bar in IE.


If you want to disable the scroll bar for a form element, you can use the following code:

style="overflow-y:hidden"

If you want the actual browser to not have a scroll bar, you can apply the same style to the html element.

html {
    overflow-y: hidden;
}

If you want to disable both scroll bars:

overflow: hidden


And in case you want to use just html attributes:

<body scroll="no">

to disable scroll in IE completely

Let the down voting begin ;)


In CSS you can do:

html, body {
overflow-y:hidden;
}


Disabling scroll bars with css

overflow-x:hidden
overflow-y:hidden
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜