开发者

How can I create scrolling areas like the ones on stackoverflow?

I'm currently working on a flash project, which will use multiple scroll areas. I'm trying to find out how to create a scroll area like I see on stackoverflow, and make it function similarly. Whenever someone posts their lines of code to stackoverflow, the sc开发者_如何学Goroll area scrollbar looks exactly like the scrollbar in the web browser, and is able to be scrolled with the mousewheel smoothly, without affecting the webpage scrolling.

Example: disable mouse wheel scrolling while cursor over flex app?

Could anyone please explain to me how I can do this in my flash project? Thanks!!


You wouldn't need flash to do this... This is accomplished using CSS. You would just need to put the portion you wanted to function like that in a div (or any HTML container for that matter) and then define such properties as min-height, max-height, min-width, max-width, overflow, etc. I think there's one that determines the presence of the scroll bars but I don't remember what it is for sure. Very easy to do this and flash would be a bit of overkill.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜