【发布时间】:2016-11-04 05:49:17
【问题描述】:
当我将文本放在我的单选按钮旁边时,我希望它垂直对齐,因此文本不在我的单选按钮下方。 See this printscreen for example
这是我使用的代码:
<td>
<input type="radio" id="act41" name="action4" value="Geen vertraging, op tijd" onfocus="checkfocus()">
Geen vertraging en tijd aangekomen
</td>
这是单选按钮的 CSS:
input[type="radio"] {
width: 25px;
float: left;
vertical-align: baseline;
}
当我希望文本垂直对齐时,你有什么建议可以应用 CSS 吗?
【问题讨论】:
标签: html css alignment vertical-alignment