此图像显示,但我无法调整它的大小,无论我使用的宽度或高度值如何。任何thougt?谢谢。GWT Uibinder图像显示但不能调整大小
<ui:with field='res' type='com.hellomvp.client.resources.MyResources'/>
<ui:style>
.fortaImage { width:'50px'; height:'50px';}
</ui:style>
<g:DockLayoutPanel unit='EM'>
<g:north size="10">
<g:FlowPanel>
<g:Image styleName='{style.fortaImage}' resource='{res.fortaLogo}'/>
<g:InlineLabel>FortaService</g:InlineLabel>
<g:ListBox></g:ListBox>
<g:InlineLabel>DateIn</g:InlineLabel>
<d:DateBox></d:DateBox>
<g:InlineLabel>DateOut</g:InlineLabel>
<d:DateBox></d:DateBox>
<g:Button>Cerca</g:Button>
</g:FlowPanel>
</g:north>
</g:DockLayoutPanel>
我在另一个线程中描述了这一点。 它适用于来自ClientBundle资源的图像[link](http://stackoverflow.com/a/10333993/904820) – Hussar 2012-04-27 11:21:39