0
我正在嘗試將文本輸入對齊到表td的右側,但沒有結果。下面是我有:右對齊表中的輸入
.right {
text-align: right;
}
<table width="100%">
<tr>
<td width="50%"><input type="text" name="nome" id="nome" placeholder="Nome" /></td>
<td class="right"><input type="text" name="email" id="email" placeholder="Email" /></td>
</tr>
<tr>
<td colspan="2"><input type="text" name="msg" id="msg" placeholder="Mensagem" /></td>
</tr>
<tr>
<td colspan="2">
<input type="submit" id="sendform" value="Enviar">
</td>
</tr>
</table>
?你要看什麼? – sn3ll
爲什麼你甚至用桌子? –
@LawrenceCherone即時只是用來做到這一點。 – eskimopest