0
通過使用GWT UiBinder如何修復屏幕底部的圖像?以及如何修復屏幕中心的圖像?請任何人幫助我。CSS屏幕樣式
通過使用GWT UiBinder如何修復屏幕底部的圖像?以及如何修復屏幕中心的圖像?請任何人幫助我。CSS屏幕樣式
#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
}
如果您使用的是UIBinder I圖像,那麼您使用的是佈局控件。在這種情況下,我會修改代碼以使用DockLayoutPanel或某些使用align屬性播放的VerticalPanel或HorizontalPanel。
看看官方文檔:DevGuideUIPanels
有些代碼會有所幫助。 – 2011-04-18 13:48:03