jsf与allign按钮有关的问题
我有一个表单,表单中心有登录按钮:jsf与allign按钮有关的问题,jsf,Jsf,我有一个表单,表单中心有登录按钮: <h:panelGrid columns="3" > ..... <td align="center"> <a:commandButton id="loginButton"> <td> ..... </h:panelGrid> ..... ..... 我希望添加保存按钮,以便两个按钮位于中间。但是,如果只是将按钮添加到,则保存按钮设置在右侧。jsf对按钮allign有问题 <h:com
<h:panelGrid columns="3" >
.....
<td align="center">
<a:commandButton id="loginButton">
<td>
.....
</h:panelGrid>
.....
.....
我希望添加保存按钮,以便两个按钮位于中间。但是,如果只是将按钮添加到
,则保存按钮设置在右侧。jsf对按钮allign有问题
<h:commandButton id="SaveButton" value="Save" style="float:right;margin-right:10px;" action="save"/>
**or use div tag**
<div style="margin-left:200px;">
<h:commandButton id="SaveButton" value="Save" action="save"/>
</div>
**或者使用div标签**
我认为您不应该将
与
一起使用。读这个。