<table>
<tr>
<td><form name="profiel" action="profiel.php"><input class="button2" type="submit" value="Jens Boonen" /></form></td>
<td width="94%"><form name="zoeken" action="zoeken.php"><input type="submit" class="button2" value="Zoeken"> </form></td>
<td><form name="loguit" action="loguit.php"><input class="button2" type="submit" value="Log-Out" /></form></td>
</tr>
</table>
为什么不在同一级别的按钮?
按照要求的CSS:
.button2 {
background-color:black;
display:block;
line-height:200%;
text-transform: lowercase;
font-variant: small-caps;
font-size: 20px;
font-weight: 300;
text-decoration: none;
color: white;
margin:0.5%;
border:1px solid white;
}
全部3个按钮是“BUTTON2”,以及“zoeken”和“退出”都在同一水平(注销不显示图片),但名称栏(在这种情况下,Jens Boonen)不是
因为我们不知道你的CSS是怎么样的。请提供您的CSS。 – Siyah
特别为你添加它hahaha – Bondjens
我看你的html,并立即想到2个问题: 1)为什么你使用表格布局? 2)你为什么使用表单?对于注销操作,这是一件好事,但其他“形式”不能只使用锚标签吗? – Kippie