admin管理员组文章数量:1326332
I have a div.
I want that user should not be able to scroll the page if the height is more than 350px. Also the scroll bar should be visible in disable mode in that case.
I want to achieve this using javascript.
Thanks
I have a div.
I want that user should not be able to scroll the page if the height is more than 350px. Also the scroll bar should be visible in disable mode in that case.
I want to achieve this using javascript.
Thanks
Share Improve this question asked Jun 10, 2009 at 8:46 ArunArun 2- Please revise your question. None of what you wrote makes sense.. to me at least :) – cllpse Commented Jun 10, 2009 at 8:53
- "If the div is higher than 350px, disable scrolling for the whole page", is that what you're after? I don't think there is a "disable" mode for scrollbars. Either they're there, or they're not. – peirix Commented Jun 10, 2009 at 8:57
2 Answers
Reset to default 4I can't say I pletely understood what you want, but I think what you're looking for is CSS not javascript. Take a look at the overflow property.
Seems like you're looking for overflow: hidden; perhaps?
本文标签: javascriptdisable scroll bar on the divStack Overflow
版权声明:本文标题:javascript - disable scroll bar on the div - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742200912a2431942.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论