zoukankan      html  css  js  c++  java
  • bootstrap 表单样式

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>test</title>
        <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.css"> 
        <style>
            .form-control-feedback{right:15px;}
            @media (min- 768px) {
                .flabel{text-align: right;line-height: 30px;}
                .finput{padding:0;}
                .form-control-feedback{right:0px;}
            }
        </style>
    </head>
    <body>
        <div class="container">
            <div>
                <form>
                    <div class="form-group has-success has-feedback">
                        <div class="col-sm-2 flabel">
                            <label for="">标签:</label>
                        </div>
                        <div class="col-sm-6 finput">
                            <input type="text" class="form-control input-sm">
                            <span class="form-control-feedback glyphicon glyphicon-remove"></span>
                        </div>
                        <div class="col-sm-4 ftips">
                            <div class="help-block">提示</div>
                        </div>
                    </div>
                    <div class="form-group has-success has-feedback">
                        <div class="col-sm-2 flabel">
                            <label for="">标签:</label>
                        </div>
                        <div class="col-sm-6 finput">
                            <input type="text" class="form-control input-sm">
                            <span class="form-control-feedback glyphicon glyphicon-remove"></span>
                        </div>
                        <div class="col-sm-4 ftips">
                            <div class="help-block">提示</div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </body>
    </html>
  • 相关阅读:
    flask-scripts
    mysql相关
    day9:函数
    day8:文件操作
    day7:set和深浅copy
    day6:前两小节补充
    day5:字典dict
    day4:数据结构list
    piano class 13
    day3:数据类型 str
  • 原文地址:https://www.cnblogs.com/tonghaolang/p/5997401.html
Copyright © 2011-2022 走看看