如何使用 GWT 2.4 和 uiBinder 添加空格?
我正在使用 uiBinder 中的 HTMLPanel 进行布局。
我想在页面上的几个地方创建一些空白,比如说 70px 的高度,以分割小部件的垂直布局。
执行此操作的首选方法是什么?使用 CSS 或不可见的面板或其他方法?
I'm working on doing my layout using HTMLPanel in uiBinder.
I want to create some whitespace, lets say 70px of height, in several places on the page, to split up the vertical layout of the widgets.
What is the preferred way to do this? Using CSS or a panel that isn't visible or some other method?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用CSS。您可以将其写在 ui.xml 文件的顶部。
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder .html#Hello_Stylish_World
Use CSS. You can write it right at the top of your ui.xml file.
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Stylish_World