GWT滑动侧面板 [英] GWT sliding side panel
问题描述
我对如何在GWT中创建滑动侧面板感兴趣? (即本页左侧的社交网络滑动面板: http://www.inc.com/articles/2011/03/how-19-year-old-daniel-gross-is-taking-on- google-with-greplin.html )
I am interested in how would you approach creating sliding side panel in GWT? (i.e. social networks sliding panel on the left of this page: http://www.inc.com/articles/2011/03/how-19-year-old-daniel-gross-is-taking-on-google-with-greplin.html)
我应该处理哪类事件?
问候
Regards
推荐答案
这种东西可以完全用CSS完成。查看css属性 position:relative
(用于初始位置), position:fixed
以及 top
和 left
属性,当用户滚动时。
This kind of stuff can be done entirely with CSS. Have a look at the css properties position: relative
(for the initial position), position: fixed
as well as top
and left
properties when the user scrolls.
这篇关于GWT滑动侧面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!