Bootstrap .has-warning类
具有警告类可让您设置输入警告。
您可以尝试运行以下代码来实现has-warning类:
示例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts/jquery.min.js"></script>
<script src = "/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<form class = "form-horizontal" role = "form">
<div class = "form-group has-warning">
<label class = "col-sm-2 control-label" for = "inputWarning">
Input with warning
</label>
<div class = "col-sm-10">
<input type = "text" class = "form-control" id = "inputWarning">
</div>
</div>
</form>
</body>
</html>热门推荐
6 祝福语简短的微信
10 搞笑英译祝福语简短句
11 惊喜自己的祝福语简短
12 对女儿生日祝福语简短
13 新年到来的祝福语简短
14 对爸爸的简短祝福语
15 生日祝福语对妈妈简短
16 访贫问苦祝福语简短句子
17 保洁阿姨送来祝福语简短
18 牛年企业祝福语简短大气