HTML垂直居中按钮对齐

时间:2012-09-21 23:57:26

标签: html button alignment

如何对齐2个文本框右侧的按钮,但是在中间垂直对齐? (我想要一个Windows 8 Metro的感觉。)

我有什么:

enter image description here

我想要的(样机):

enter image description here

1 个答案:

答案 0 :(得分:0)

您可以使用Table标记,如下所示

    <table>
     <tr>
      <td>
      <input type="text" name="textbox1">
      <br>
      <input type="text" name="textbox2">
      </td>
      <td>
      <button name="abc" value="Submit"   type="button">Submit</button>
      </td>
     <tr>
    </table>

希望有所帮助

相关问题