我正在使用ui活頁夾將元素放置在GWT頁面上,但我無法正確放置元素。根據我在流程面板中的知識元素應顯示爲水平線,但它們是出現在一條垂直線上。如何將元素放置在GWT中的Flowpanel上
<g:FlowPanel>
<g:Label ui:field="searchLabel" text="{labels.searchFor}"> </g:Label>
<g:ListBox ui:field="searchListBox"></g:ListBox>
</g:FlowPanel>
<g:SimplePanel addStyleNames="{cres.style.textAlignCenter}">
<g:Button ui:field="searchButton" text="{clabels.search}"/>
</g:SimplePanel>
FlowPanel被轉換爲div元素。您可以使用HorizontalPanel。 – Fedy2