bootstrap 表单控件 控件状态 控件大小 help-block

bootstrap 表单控件 控件状态 控件大小 help-block

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="dist/css/bootstrap.css">
</head>

<body>
    <div class="container">

        <p class="btn-primary">表单控件</p>
        <input type="text" placeholder="this is text">
        <select name="" id="">
            <option value="">1</option>
            <option value="">2</option>
            <option value="">3</option>
        </select>
        <select name="" id="" multiple>
            <option value="">1</option>
            <option value="">2</option>
            <option value="">3</option>
        </select>
        <div class="checkbox">
            <label for="">
                <input type="checkbox"> abc
            </label>
        </div>
        <div class="radio">
            <label for="">
                <input type="radio" name="A" value="A" checked="">A
            </label>
        </div>
        <div class="radio">
            <label for="">
                <input type="radio" name="A" value="B">B
            </label>
        </div>
        <div class="checkbox-inline">
            <label for="">
                <input type="checkbox"> ABC
            </label>
        </div>
        <div class="radio-inline">
            <label for="">
                <input type="radio"> A
            </label>
        </div>
        <p class="btn-primary">控件状态</p>
        <input type="text" value="ABC" disabled="disabled">
        <input type="text" value="set class disabled is useless" class="disabled">
        <input type="text" value="ABC">
        <p class="btn-primary">验证提示状态</p>
        <div class="form-group has-warning">
            <label for="inputwarning" class="control-label">input Warning</label>
            <input type="text" class="form-control" id="inputwarning">
        </div>
        <div class="form-group has-error">
            <label for="inputerror" class="control-label">input Error</label>
            <input type="text" class="form-control" id="inputerror">
        </div>
        <div class="form-group has-success">
            <label for="inputsuccess" class="control-label">input Success</label>
            <input type="text" class="form-control" id="inputsuccess">
        </div>
        <div class="form-group has-warning has-feedback">
            <label for="inputwarning" class="control-label">input Warning</label>
            <input type="text" class="form-control" id="inputwarning">
            <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
        </div>
        <div class="form-group has-error has-feedback">
            <label for="inputerror" class="control-label">input Error</label>
            <input type="text" class="form-control" id="inputerror">
            <span class="glyphicon glyphicon-remove form-control-feedback"></span>
        </div>
        <div class="form-group has-success has-feedback">
            <label for="inputsuccess" class="control-label">input Success</label>
            <input type="text" class="form-control" id="inputsuccess">
            <span class="glyphicon glyphicon-ok form-control-feedback"></span>
        </div>
        <p class="btn-primary">控件大小</p>
        <div class="row">
            <div class="col-xs-2">
                <input type="text" class="input-lg form-control" placeholder='.col-xs-2'>
            </div>
            <div class="col-xs-3">
                <input type="text" class="input-sm form-control" placeholder='.col-xs-3'>
            </div>
        </div>
        <p class="btn-primary">.help-block</p>
        <span>this is span before help-block</span>
        <span class="help-block">this is help block span</span>
        <span>this is span after help-block</span>
    </div>
</body>

</html>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值