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

Bootstrap对话框

时间:2016-06-23 14:24:51      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:

<div class="modal fade" id="myModalLabel" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                 aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header bg-primary">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                            <h4 class="modal-title">添加新用户</h4>
                        </div>
                        <form class="form-horizontal form-bordered form-row-strippe" id="ffAdd" action=""
                              data-toggle="validator">
                            <div class="modal-body">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <label class="control-label col-md-3">账号
                                            </label>

                                            <div class="col-md-8">
                                                <input type="text" class="form-control" name="username" id="username">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <label class="control-label col-md-3">密码
                                            </label>

                                            <div class="col-md-8">
                                                <input type="password" class="form-control" name="password"
                                                       id="password">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <label class="control-label col-md-3">姓名
                                            </label>

                                            <div class="col-md-8">
                                                <input type="text" class="form-control" name="name" id="name">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <label class="control-label col-md-3">邮箱
                                            </label>

                                            <div class="col-md-8">
                                                <input type="text" class="form-control" name="email" id="email">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <label class="control-label col-md-3">电话
                                            </label>

                                            <div class="col-md-8">
                                                <input type="text" class="form-control" name="tel" id="tel">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <div class="modal-footer bg-info">
                            <button type="button" class="btn blue" id="save">保存</button>
                            <button type="button" class="btn default" data-dismiss="modal">取消</button>
                        </div>
                    </div>

                    <!-- /.modal-content -->
                </div>
                <!-- /.modal-dialog -->
            </div>

 

Bootstrap对话框

标签:

原文地址:http://www.cnblogs.com/terry0376/p/5610487.html

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