国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

bootstrap中添加額外的圖標實例代碼

2019-11-19 17:33:50
字體:
供稿:網(wǎng)友

說明

可以針對校驗狀態(tài)為輸入框添加額外的圖標。只需設(shè)置相應(yīng)的 .has-feedback 類并添加正確的圖標即可

示例

<!DOCTYPE html><html lang="zh-CN">  <head>   <meta charset="utf-8">   <meta http-equiv="X-UA-Compatible" content="IE=edge">   <meta name="viewport" content="width=device-width, initial-scale=1">   <!-- 上述3個meta標簽*必須*放在最前面,任何其他內(nèi)容都*必須*跟隨其后! -->   <title>Bootstrap 101 Template</title>   <!-- Bootstrap -->   <link rel="stylesheet"  rel="external nofollow" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">   <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->   <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->   <!--[if lt IE 9]>    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>   <![endif]-->  </head>  <body>  <div class="container">   <div class="form-group has-success has-feedback">   <label class="control-label" for="inputSuccess2">Input with success</label>   <input type="text" class="form-control" id="inputSuccess2" aria-describedby="inputSuccess2Status">   <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>   <span id="inputSuccess2Status" class="sr-only">(success)</span>   </div>   <div class="form-group has-warning has-feedback">  <label class="control-label" for="inputWarning2">Input with warning</label>   <input type="text" class="form-control" id="inputWarning2" aria-describedby="inputWarning2Status">   <span class="glyphicon glyphicon-warning-sign form-control-feedback" aria-hidden="true"></span>   <span id="inputWarning2Status" class="sr-only">(warning)</span>  </div>  <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>  <div class="form-group has-success has-feedback">   <label class="control-label" for="inputGroupSuccess1">Input group with success</label>   <div class="input-group">    <span class="input-group-addon">@</span>    <input type="text" class="form-control" id="inputGroupSuccess1" aria-describedby="inputGroupSuccess1Status">   </div>   <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>   <span id="inputGroupSuccess1Status" class="sr-only">(success)</span>  </div>   </div>   <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->   <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>   <!-- Include all compiled plugins (below), or include individual files as needed -->   <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>  </body></html>

輸出

以上所述是小編給大家介紹的bootstrap中添加額外的圖標實例代碼,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對武林網(wǎng)網(wǎng)站的支持!

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 寻乌县| 雅安市| 嘉禾县| 庐江县| 隆子县| 哈巴河县| 利辛县| 蒙阴县| 商南县| 衡东县| 鸡西市| 平原县| 三门峡市| 巴东县| 达州市| 五家渠市| 甘孜县| 长岭县| 吉木乃县| 浠水县| 宁强县| 博客| 辉南县| 镇安县| 湘潭县| 锡林浩特市| 化德县| 荔浦县| 久治县| 琼海市| 海南省| 高要市| 化州市| 大理市| 漾濞| 富源县| 石河子市| 桂平市| 文安县| 阳曲县| 潞西市|