4
如何使用uibinder在GWT中創建圖像按鈕。我目前的代碼如下所示:使用uibinder的Gwt圖像按鈕
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:with type="com.test.client.Resources" field="res"></ui:with>
<g:HTMLPanel>
<g:Image resource="{res.facebook_32}"/>
<g:PushButton>
<g:downFace image="{res.facebook_32}"></g:downFace>
<g:upFace image="{res.facebook_32}"></g:upFace>
</g:PushButton>
</g:HTMLPanel>
</ui:UiBinder>
圖像打印正確,圖像資源正常工作。
檢查,該工程。只有箭頭不會變成「點擊手」。 –
這就是CSS。只需使用光標:指針; – elvispt