如何使用 GWT 2.4 和 uiBinder 添加空格?

发布于 2024-12-17 13:25:45 字数 135 浏览 4 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

-小熊_ 2024-12-24 13:25:45

使用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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文