如何在HTML中对齐文本按钮

时间:2018-05-15 02:50:33

标签: html text alignment

我正在尝试水平对齐3个文本框,非常喜欢一些建议/帮助!

这些应该都是连续的,但是它是以水平方式堆叠的。

我相信它与td和table标签有关。

 <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="center">
     <tbody>

     <td align="left" style="color: #808488; font-size: 10px; font-family:Arial; padding:0px 0px 0px 0px">
       <a href="" style="color:#ffffff; text-decoration:none">
       <table width="150" border="0" cellspacing="0" cellpadding="0" bgcolor="#00c0a5" style="border-radius:4px">
       <tbody>

 <td align="center" style="padding:15px 10px 15px 10px; color:#ffffff; font-size:10px; font-family:Arial">Repayment Calculator</td>



          <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="center">


     <td align="middle" style="color: #808488; font-size: 10px; font-family:Arial; padding:0px 0px 0px 0px">
       <a href="" style="color:#ffffff; text-decoration:none">
       <table width="150" border="0" cellspacing="0" cellpadding="0" bgcolor="#00c0a5" style="border-radius:4px">



 <td align="center" style="padding:15px 10px 15px 10px; color:#ffffff; font-size:10px; font-family:Arial">Borrowing Power Calculator</td>




             <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="center">
     <tbody>

     <td align="right" style="color: #808488; font-size: 10px; font-family:Arial; padding:0px 0px 0px 0px">
       <a href="" style="color:#ffffff; text-decoration:none">
       <table width="150" border="0" cellspacing="0" cellpadding="0" bgcolor="#00c0a5" style="border-radius:4px">
       <tbody>


 <td align="center" style="padding:15px 10px 15px 10px; color:#ffffff; font-size:10px; font-family:Arial">Property Report</td>
    </tr>
     </tbody>
   </table>
   </td>
    </tr>
  </tbody>
   </table></td>

1 个答案:

答案 0 :(得分:0)

<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="center">
     <tbody>
 <td align="left" style="color: #808488; font-size: 10px; font-family:Arial; padding:0px 0px 0px 0px; width:33%;">
       <a href="" style="color:#ffffff; text-decoration:none">
       <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#00c0a5" style="border-radius:4px">
       <tbody>
<tr>
 <td align="center" style="padding:15px 10px 15px 10px; color:#ffffff; font-size:10px; font-family:Arial">Repayment Calculator</td>
</tr>
</tbody></table>
</td>
<td align="left" style="color: #808488; font-size: 10px; font-family:Arial; padding:0px 0px 0px 0px; width:33%;">
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="center">
<tbody>

<tr>

     <td align="middle" style="color: #808488; font-size: 10px; font-family:Arial; padding:0px 0px 0px 0px">
       <a href="" style="color:#ffffff; text-decoration:none">
       <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#00c0a5" style="border-radius:4px">
<tbody>

<tr>
 <td align="center" style="padding:15px 10px 15px 10px; color:#ffffff; font-size:10px; font-family:Arial">Borrowing Power Calculator</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
<td style="width:33%;">


             <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="center">
     <tbody><tr>

     <td align="right" style="color: #808488; font-size: 10px; font-family:Arial; padding:0px 0px 0px 0px">
       <a href="" style="color:#ffffff; text-decoration:none">
       <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#00c0a5" style="border-radius:4px">
       <tbody>
<tr>
 <td align="center" style="padding:15px 10px 15px 10px; color:#ffffff; font-size:10px; font-family:Arial">Property Report</td>
 </tr>
 </tbody></table>
</td>
</tr>
 </tbody></table>
 </td>
    </tr>
     </tbody>
   </table>