Blogger Information
Blog 22
fans 0
comment 0
visits 21727
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
bootstrap表单(9月25日作业)
岑勋的博客
Original
1328 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../lib/dist/css/bootstrap.css">
    <title>用户登录</title>
</head>
<body>
<!--用水平表单制作一个完整用户登陆页面-->
<div class="container">
    <div class="row">
        <div class="col-md-6 col-offset-3">
            <h3 class="h3 text-center text-danger">用户登录</h3>
            <form class="form-horizontal">
                <div class="form-group">
                    <label for="username" class="col-sm-2 control-label">用户名:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="user" placeholder="20位以内字母和数字组合的字符串">
                    </div>
                </div>
                <div class="form-group">
                    <label for="email" class="col-sm-2 control-label" >邮    箱:</label>
                    <div class="col-sm-10">
                        <input type="email" class="form-control" name="email" placeholder="请输入邮箱">
                    </div>
                </div>
                <div class="form-group">
                    <label for="pwd" class="col-sm-2 control-label">密    码:</label>
                    <div class="col-sm-10">
                        <input type="password" class="form-control" name="pwd" placeholder="不少于8位数">
                    </div>
                </div>
                <div class="group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <div class="checkbox">
                            <label >
                                <input type="checkbox">记住我
                            </label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-block btn-info">登 录</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

QQ截图20180925231112.png



Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post