2011-04-18 66 views
0

通过使用GWT UiBinder如何修复屏幕底部的图像?以及如何修复屏幕中心的图像?请任何人帮助我。CSS屏幕样式

+0

有些代码会有所帮助。 – 2011-04-18 13:48:03

回答

1
#imageatbottomofscreen{ 
position:fixed; 
bottom:0px; 
} 
#imageincenterofscreen{ 
position:absolute; 
top:50%;//may not need 
left:50%;//these two lines 
height:400px; 
width:1000px; 
margin-left:-500px;//half of width 
margin-top:-200px;//half of height 
} 
0

如果您使用的是UIBinder I图像,那么您使用的是布局控件。在这种情况下,我会修改代码以使用DockLayoutPanel或某些使用align属性播放的VerticalPanel或Horizo​​ntalPanel。

看看官方文档:DevGuideUIPanels