1
我发现了一种使用引导程序网格系统布局表单域的方法。请参阅jsfiddle链接。 http://jsfiddle.net/kUNVs/如何使用布局网格在引导程序中标记表单域
当我在邮政编码字段上放置标签时,一切看起来都不错。但是,当我使用相同的“逻辑”将标签应用于城市字段时,它位于邮政编码标签下。或者在第二个例子中,我完全用软管布局。
所以问题是,基于上面jsfiddle中的示例,如何向城市字段添加标签并将其放在城市上方而不是邮政编码?
我试过这个。
<label for="zipcode">Zip Code</label>
<label for="city">City</label>
<div class="controls controls-row">
<input type="text" id="zipcode" class="span1" placeholder="Zipcode"/>
<input type="text" id="city" class="span2" placeholder="City"/>
</div>
这
<div class="controls controls-row">
<label for="zipcode">Zip Code</label>
<input type="text" id="zipcode" class="span1" placeholder="Zipcode"/>
<label for="city">City</label>
<input type="text" id="city" class="span2" placeholder="City"/>
</div>
完美。这将做到这一点。再次感谢 – DonnieCrump 2013-03-11 20:25:45