[英]GWT minimize generated HTML code
I want to reduce size of HTML code, that is generated, for example, by GWT VerticalPanel . 我想减小HTML代码的大小,例如由GWT VerticalPanel生成的HTML代码。 How can I do this?
我怎样才能做到这一点? Thanks.
谢谢。
Widgets don't generate HTML, they manipulate DOM elements. 小部件不会生成HTML,而是会处理DOM元素。 There's nothing to minify .
没有什么可缩小的 。
If what bugs you is that VerticalPanel
uses a <table>
then, well, don't use a VerticalPanel
. 如果您遇到的问题是
VerticalPanel
使用<table>
,那么不要使用VerticalPanel
。 In many cases, a FlowPanel
will be enough. 在许多情况下,使用
FlowPanel
就足够了。
I am a bit unsure about your goal. 我不太确定你的目标。
In order for the GWT lib to accommodate all possible uses of VerticalPanel, a certain amount of HTML code is needed. 为了使GWT库能够容纳VerticalPanel的所有可能用法,需要一定数量的HTML代码。 I find that compiled GWT code is very compact.
我发现已编译的GWT代码非常紧凑。
I do not think there is a way to reduce the amount of output HTML. 我认为没有办法减少输出HTML的数量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.