码迷,mamicode.com
首页 > 其他好文 > 详细

bootstrap 表单样式

时间:2016-10-25 18:35:30      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:min   height   lock   help   media   put   test   char   pre   

<!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-width: 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>

 

bootstrap 表单样式

标签:min   height   lock   help   media   put   test   char   pre   

原文地址:http://www.cnblogs.com/tonghaolang/p/5997401.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!