我要關閉這個例子:引導形式圖標不是內部輸入,如果標籤被省略
<div class="form-group has-error has-feedback">
<label class="control-label" for="inputError2">Input with error</label>
<input type="text" class="form-control" id="inputError2" aria-describedby="inputError2Status">
<span class="glyphicon glyphicon-remove form-control-feedback" aria-hidden="true"></span>
<span id="inputError2Status" class="sr-only">(error)</span>
</div>
我已經發現如果我省略<標籤>標籤,所述glyphicon-除去出現在下一行,而不是輸入內部。這是什麼原因?在我目前的設計中,我不想有任何標籤。有沒有什麼辦法可以避免標籤,並仍然在輸入內獲得圖形?
請顯示標籤省略代碼也 –