Tôi đang sử dụng Twitter-Bootstrap và muốn tạo ra html đúng để hiển thị xem lỗi như thế nào nó có phải nó trên trang web chính, đó là:Thiết lập chế độ xem html thông báo lỗi theo cách này?
Các html cho lĩnh vực trên là:
<div class="control-group error">
<label for="inputError" class="control-label">Input with error</label>
<div class="controls">
<input type="text" id="inputError">
</div>
</div>
Lưu ý: Tôi đã xóa Please correct the error, <span>
, tôi chỉ muốn trường nhập và nhãn.
Và nếu tôi là sử dụng dấu của tôi lên trang như là một ví dụ, trường email
, nó sẽ là:
<div class="control-group">
<label for="user_email" class="control-label">Email*</label>
<div class="controls">
<input type="email" value="" name="user[email]" id="user_email" class="span3">
</div>
</div>
gì làm tôi phải làm gì để làm cho nó hoạt động như trước đây?