2011-04-18 5 views
0

GWT UiBinder를 사용하여 화면 하단의 이미지를 수정하는 방법은 무엇입니까? 화면 중앙에 이미지를 고정시키는 방법은 무엇입니까? 누구든지 나를 도와주세요.CSS 화면 스타일

+0

몇 가지 코드가 도움이 될 것입니다. –

답변

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 또는 VerticalPanel 또는 HorizontalPanel 중 일부를 align 속성을 사용하여 재생하도록 코드를 수정합니다.

DevGuideUIPanels