課程
/前端開發(fā)
/Bootstrap
/玩轉(zhuǎn)Bootstrap(基礎(chǔ))
如果想讓提示信息和icon圖標(biāo)都出現(xiàn)該怎么實(shí)現(xiàn)
2017-02-06
源自:玩轉(zhuǎn)Bootstrap(基礎(chǔ)) 3-14
正在回答
<!doctype html><html><head>??? <meta charset="UTF-8">??? <title>表單提示信息</title>??? <link rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">??? <style type="text/css">??????? .col-xs-6{padding-right: 0px;}??? </style></head><body><h3>示例1</h3><form role="form">? <div class="form-group has-error has-feedback">??? <label for="inputError1">錯(cuò)誤狀態(tài)</label>??? <div class="row">??????? <div class="col-xs-6">??????????? <input type="text" id="inputError1" placeholder="錯(cuò)誤狀態(tài)" class="form-control">??????????? <span class="glyphicon glyphicon-remove form-control-feedback"></span> ???????? </div>??????? <span class="col-xs-6 help-block">你輸入的信息是錯(cuò)誤的</span>??? </div>? </div></form>?? ?<br></body></html>
一飛同學(xué) 提問者
qq_Say_3
sorry? 沒保存好,把補(bǔ)得幾個(gè)class漏了
<!doctype html><html><head>??? <meta charset="UTF-8">?? ?<title>表單提示信息</title>?? ?<link rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">?? ?<style type="text/css">?? ??? ?.col-xs-6{padding-right: 0px;}?? ?</style></head><body><h3>示例1</h3><form role="form">? <div class="form-group has-error has-feedback">??? <label for="inputError1">錯(cuò)誤狀態(tài)</label>??? <div>?? ???? <div>?? ??? ??? ?<input type="text" id="inputError1" placeholder="錯(cuò)誤狀態(tài)">?? ??? ??? ?<span class="glyphicon glyphicon-remove form-control-feedback"></span> ??? ???? </div>?? ???? <span class="col-xs-6 help-block">你輸入的信息是錯(cuò)誤的</span>??? </div>?? ?? </div></form>?? ?<br></body></html>
舉報(bào)
告訴你使用Bootstrap,并且能夠獨(dú)立定制出適合自己的Bootstrap
4 回答圖標(biāo)部分無法正常顯示
2 回答部分圖標(biāo)沒辦法正常顯示
1 回答icon-bar從何而來,是前面學(xué)習(xí)圖標(biāo)時(shí)說的260多個(gè)圖標(biāo)中的一個(gè)嗎?
1 回答字體圖標(biāo)不顯示
4 回答圖標(biāo)不能顯示啊
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2017-02-07
<!doctype html>
<html>
<head>
??? <meta charset="UTF-8">
??? <title>表單提示信息</title>
??? <link rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
??? <style type="text/css">
??????? .col-xs-6{padding-right: 0px;}
??? </style>
</head>
<body>
<h3>示例1</h3>
<form role="form">
? <div class="form-group has-error has-feedback">
??? <label for="inputError1">錯(cuò)誤狀態(tài)</label>
??? <div class="row">
??????? <div class="col-xs-6">
??????????? <input type="text" id="inputError1" placeholder="錯(cuò)誤狀態(tài)" class="form-control">
??????????? <span class="glyphicon glyphicon-remove form-control-feedback"></span> ?
??????? </div>
??????? <span class="col-xs-6 help-block">你輸入的信息是錯(cuò)誤的</span>
??? </div>
? </div>
</form>?? ?
<br>
</body>
</html>
2017-02-07
sorry? 沒保存好,把補(bǔ)得幾個(gè)class漏了
2017-02-06
<!doctype html>
<html>
<head>
??? <meta charset="UTF-8">
?? ?<title>表單提示信息</title>
?? ?<link rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
?? ?<style type="text/css">
?? ??? ?.col-xs-6{padding-right: 0px;}
?? ?</style>
</head>
<body>
<h3>示例1</h3>
<form role="form">
? <div class="form-group has-error has-feedback">
??? <label for="inputError1">錯(cuò)誤狀態(tài)</label>
??? <div>
?? ???? <div>
?? ??? ??? ?<input type="text" id="inputError1" placeholder="錯(cuò)誤狀態(tài)">
?? ??? ??? ?<span class="glyphicon glyphicon-remove form-control-feedback"></span> ?
?? ???? </div>
?? ???? <span class="col-xs-6 help-block">你輸入的信息是錯(cuò)誤的</span>
??? </div>
?? ?
? </div>
</form>?? ?
<br>
</body>
</html>