zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    [置顶] win7 && win8 下安装SqlServer 2008出现错误无法将对象实例化的问题
    [置顶] sizeof()和c++中变量们
    [置顶] sql2008 附加数据库 .mdf 出现错误 解决方案
    [置顶] 漂亮的 tab 样式
    [置顶] 认识指针和指针变量
    [置顶] SqlHelper类
    [置顶] 第一次使用事物 利用线性表
    [置顶] 设计模式之单例模式 (Design patterns of the The singleton pattern)c#
    [置顶] ListBox控件的数据绑定
    RedHat 6.0(64位)如何使用CentOS YUM源更新的方法
  • 原文地址:https://www.cnblogs.com/stono/p/4852696.html
Copyright © 2011-2022 走看看