<td align="center"> </td>不居中

<table>
    <tr>
       <td align="center">
        <Field:button value="Download" type="confirm" onclick="download()"/>
       </td>
    </tr>
</table>此代码按钮Download不居中,而是左对齐。

<table  align="center">
    <tr>
       <td align="center">
        <Field:button value="Download" type="confirm" onclick="download()"/>
       </td>
    </tr>
</table>此时居中

猜你喜欢

转载自ztao2333.iteye.com/blog/2263930
td
今日推荐