<s:form action="download1" name="regform" id="formSelectOne" theme="simple">
<td valign="top" align="right" >
<s:submit value="View coc1 " theme="simple" />
</td>
</s:form>
<s:form action="download2" name="regform" id="formSelectOne" theme="simple">
<td valign="top" align="center">
<s:submit value="View doc2" theme="simple" />
</td>
</s:form>
這些按鈕並排顯示,但我需要顯示第一個在右邊,第二個在中心。我能怎麼做?如何對齊兩個提交按鈕?
請花些時間來更好地描述你所問的問題。你的代碼很混亂,你的描述更糟。而且我還不確定我的編輯是否尊重你實際要求的內容(只有struts2標籤,而struts2只適用於主題部分)。順便說一句,爲什麼你要把你的第一個按鈕作爲第一個,如果你想在右邊? (除非你的網站是RTL) –
爲什麼你不把表單放入單元格('td')? – anu
爲什麼不使用鏈接而不是空表單提交? –