博客列表 >bootstrap表单(9月25日作业)

bootstrap表单(9月25日作业)

岑勋的博客
岑勋的博客原创
2018年09月25日 23:11:541322浏览

实例

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



声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议