开发者

keep menu visible in window when 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜