Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想减小例如由 GWT VerticalPanel生成的 HTML 代码的大小。我怎样才能做到这一点?谢谢。
小部件不生成 HTML,它们操作 DOM 元素。没有什么可以缩小的。
如果您是VerticalPanel使用 a 的错误,<table>那么,请不要使用VerticalPanel. 在许多情况下,一个FlowPanel就足够了。
VerticalPanel
<table>
FlowPanel
我有点不确定你的目标。
为了让 GWT 库适应 VerticalPanel 的所有可能用途,需要一定数量的 HTML 代码。我发现编译后的 GWT 代码非常紧凑。
我认为没有办法减少输出 HTML 的数量。