2013-02-25 59 views

回答

0

允許用戶從列表中,並在圖像的選擇選擇圖像您做

panel.getElement().getStyle().setBackgroundImage("image path"); 
0
.panelImage { 
background-image: url(properPathOfImage); 
background-repeat: no-repeat; 
height,width****etc 
} 

GWT:

panel.setStyleName("panelImage "); //This will set background first 

然後作爲@Adarsha建議語法改變

panel.getElement().getStyle().setBackgroundImage("image path"); 
相關問題