【发布时间】:2021-08-05 04:31:09
【问题描述】:
单选按钮的显示方式与所附图片一样。如何对齐标签和按钮。
input[type="radio"] {
width: 18px;
min-width: auto;
display: inline-block;
}
<label><input type="radio" name="myRadios1" id="myRadios1" value="Yes" ONCLICK="show_info_block(this.value)" />Yes</label>
<label><input type="radio" name="myRadios2" id="myRadios2" value="No" ONCLICK="show_info_block(this.value)" />No</label>
【问题讨论】:
-
你的问题不是很清楚。你到底想做什么?
-
请添加更多细节,你想要的样子,目前看起来不错。
标签: html css button label radio