我在表的同一行上有两个按钮时遇到问题。我已经搜索了好几个小时,但没有运气的解决方案。这是我当前的代码。
<form class="controlbox" name="Register" id="registration" action="index.php" method="POST">
<table style="margin-right: auto;">
<tr>
<td style="border: 1px solid gray;"><a href=”index.php”><button>Back</button></a></td>
<td style="border: 1px solid gray;"><input type="submit" value="Register" onclick="User.processRegistration()"/></td>
</tr>
</table>
</form>
我不知道如何使这些按钮显示在单独的td的同一行中。
答案 0 :(得分:0)
我设法解决了。这是我的代码,以供将来参考,以及寻求相同信息的其他人。
<form class="controlbox" name="Register" id="registration" action="index.php" method="POST">
<table style="margin-right: auto;">
<tr>
<td style="border: 1px solid gray;"><a href=”index.php”><button>Back</button></a></td>
<td style="border: 1px solid gray;"><button type="submit" onclick="User.processRegistration()">Register</button></td>
</tr>
</table>
</form>
无论如何,谢谢@aynber的努力