开发者

keep menu visible in window when scrolling

开发者 https://www.devze.com 2023-03-15 00:40 出处:网络
I want to disable window scrollbar, and g开发者_如何学Cive scrollbar to some of my div. how? I used \"overflow:hidden\", then my div content also hidden. Using ASP.Net, MVC, C# with jquery.scrolling=\

I want to disable window scrollbar, and g开发者_如何学Cive scrollbar to some of my div. how? I used "overflow:hidden", then my div content also hidden. Using ASP.Net, MVC, C# with jquery.


scrolling="no"

but if you use "scrolling=no" of what I know, the content cannot be moved up and down.

Can you try something like this?

<div style="width:300px;height:250px;overflow:auto;">
content goes here
</div>

If the content is too tall, there will be a vertical scrollbar. If the content is too wide and cannot wrap, there will be a horizontal scrollbar.

By the way, I am guessing you already tried

<body style="overflow: hidden"> 
0

精彩评论

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

关注公众号