【发布时间】:2018-06-08 18:49:14
【问题描述】:
我在固定宽度的块容器内有一个input[type="radio"] 元素。 <input/> 元素的支持文本不能放在一行中,而是包含两行或更多行。例如:
div.leftBlock {
position: relative;
float: left;
width: 275px;
}
<div class="leftBlock">
<input type="radio" name="foo" value="bar" id="option" /> This is a rather long supporting text that does not fit in one line.
</div>
如何设置<input/> 元素(或其文本)的样式,以使文本所在的每一行都以与第一行相同的缩进级别开始?第一行文本必须与<input/> 元素处于同一垂直高度。
任何帮助将不胜感激。
【问题讨论】: