GWT中的浮动面板 [英] Floating panel in GWT

查看:132
本文介绍了GWT中的浮动面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用GWT 2开发应用程序,并且想添加浮动面板,粘在屏幕底部(而不是页面,像Facebook中的聊天面板)。

I'm developing application with GWT 2 and would like to add float panel that stick to the bottom of the screen (not page, like chat panel in facebook). What is the best way to make that kind of panel?

推荐答案

如果我正确理解你,你应该应用下面的样式a Panel(任何基本面板应该做: FlowPanel HTMLPanel 等),并将其添加到正文有< body> ,但我们知道它总是存在,不会被删除;))通过 RootPanel.get()。add(fixedPanel);

If I understood you correctly, you should apply the style below to a Panel (any basic Panel should do: FlowPanel, HTMLPanel, etc) and add it to the body (it doesn't have to be <body> but we know that it's always there and won't be removed ;)) via RootPanel.get().add(fixedPanel);

position: absolute; /* Or fixed - depends on what you want */
right: 0; /* The part that puts the Panel in bottom right of the page/client area */
bottom: 0;

这篇关于GWT中的浮动面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆