我有一组单选按钮,现在我如何在一组单选按钮的选项之间添加空格。像这样
http://img692.imageshack.us/img692/3955/radiod.jpg
无论是使用css
发布于 2009-11-04 18:02:52
尝试将此代码放入样式表中:
input[type=radio] { margin-bottom: 15px }当然,您可以将15px增加到任意大小。
发布于 2009-11-04 18:01:30
line-height可能是您的最佳选择
发布于 2009-11-04 18:23:45
<p class="radios">
<label><input type="radio"> Foo</label>
<label><input type="radio"> Bar</label>
</p>
.radios label {
display: block;
margin-bottom: 15px;
}很简单,应该可以在所有浏览器中工作。对于所有表单元素,尤其是单选按钮和复选框,始终使用label,这样就可以单击文本和小按钮来选择选项。
https://stackoverflow.com/questions/1672762
复制相似问题