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>热门推荐
10 老师节祝福语的简短
11 生日祝福语简短激励女生
12 父亲简短结婚祝福语大全
13 新年祝福语独创文字简短
14 生日祝福语简短独特格式
15 英文写结婚祝福语简短
16 敏字的祝福语简短
17 恋爱祝福语大全简短搞笑
18 打游戏通关祝福语简短