zoukankan      html  css  js  c++  java
  • Bootstrap中表单控件状态(验证状态)

     

    Bootstrap 表单 http://www.runoob.com/try/try2.php?filename=bootstrap3-form-controlstate (这链接里有简介)

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" >
    </head>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
    
    <style>
        .right_20{right:20px;}
    </style>
    
    <body>
        <div class="width90_">
            <form class="form-horizontal bs-example bs-example-form">
                <div class="form-group form-group-sm has-success">
                    <label class="fontSize12 col-sm-4 control-label" for="old_pwd">
                        <span style = 'color:red;'></span>成功
                    </label>
                    <div class="col-sm-6">
                        <input maxLength = '50' class="form-control" type="text" id="old_pwd" placeholder="" >
                        <span class="glyphicon glyphicon-ok form-control-feedback right_20"></span>
                    </div>
                </div>
                <div class="form-group form-group-sm has-warning">
                    <label class="fontSize12 col-sm-4 control-label" for="new_pwd">
                        <span style = 'color:red;'></span>警告
                    </label>
                    <div class="col-sm-6">
                        <input maxLength = '50' class="form-control" type="text" id="new_pwd" placeholder="" >
                        <span class="glyphicon glyphicon-warning-sign form-control-feedback right_20"></span>
                    </div>
                </div>
                
                <div class="form-group form-group-sm has-error">
                    <label class="fontSize12 col-sm-4 control-label" for="re_new_pwd">
                        <span style = 'color:red;'></span>错误
                    </label>
                    <div class="col-sm-6">
                        <input class="form-control" type="text" id="re_new_pwd" placeholder="">
                        <span class="glyphicon glyphicon-remove form-control-feedback right_20"></span>
                    </div>
                </div>
            </form>
            
        </div>
    </body>
    </html>
  • 相关阅读:
    C# 实现 Snowflake算法生成唯一性Id
    kafka可视化客户端工具(Kafka Tool)的基本使用(转)
    docker 安装kafka
    Model类代码生成器
    使用docker 部署rabbitmq 镜像
    Vue 增删改查 demo
    git 提交代码到库
    Android ble蓝牙问题
    mac 配置 ssh 到git (Could not resolve hostname github.com, Failed to connect to github.com port 443 Operation timed out)
    okhttp
  • 原文地址:https://www.cnblogs.com/aiyr/p/7278914.html
Copyright © 2011-2022 走看看