我正在使用 Twitter Bootstrap 制作一个表单,并且在对齐“help-inline”元素时遇到了一个小问题。
这是代码:
<form class="form-horizontal" action="purchase.php" method="post" >
<fieldset>
<div class="control-group">
<label class="control-label" for="date">Details</label>
<div class="controls controls-row">
<input class="span2" type="text" id="date" data-date-format="dd/mm/yyyy" title="Enter Date in DD/MM/YYYY Format Only" placeholder="DD/MM/YYYY" value="<?php echo $dateToday;?>" required>
<input class="span2" type="text" name="resin" id="resin" title="Resin Name" placeholder="Resin Name" required/>
<input class="span2" type="text" name="kg" id="kg" title="Enter Quantity in 00.0 format only" placeholder="Enter Quantity" pattern="\d+(\.\d{1})?" required/>
<!-- Below is the problem in question-->
<span class="help-inline">Error Text Here.</span>
</div>
</div>
</fieldset>
</form>
“此处的错误文本”出现未对齐的屏幕截图:https ://dl.dropbox.com/u/128104/Random/mia.png
任何想法如何解决这一问题?