美孚英语登录页面bootstrap

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
    <!--设置浏览器以最新内核渲染页面-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <!--引入框架的css样式库-->
    <link rel="stylesheet" href="css/bootstrap.css"/>
        <style>
            body{
            background-color: rgba(0,0,0,.5);
        }
            .container{
                margin:50px auto;
                border: 1px solid #ccc;
                border-radius: 5px;
                background-color: #fff;
            }
            .container h4{
                padding: 10px 15px;
                border-bottom: 1px solid #ccc;
            }
            .container form{
                padding: 10px 15px;
                border-bottom: 1px solid #ccc;
                margin-bottom: 30px;
            }
            .container label{
            font-weight: normal;
        }

        .container .form-group{
            margin-bottom: 30px;
        }
             @media screen and (min-width: 768px) {
            .container{
                width: 300px;
            }
        }

        @media screen and (max-width: 767px) {
            .container{
                margin: 50px 15px;
            }
        }
        </style>
    <!--[if lt IE 9]>
        <script src="js/html5shiv.min.js"></script>
        <script src="js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
        <div class="container">
            <h4>欢迎登录 <small>SIGN IN</small>
            <button class="close">&times;</button>
            </h4>
            <form action="#">
            <div class="form-group">
                    <input type="text" class="form-control" placeholder="手机/邮箱/用户名" />
            </div>
            <div class="form-group">
                    <input type="password" class="form-control" placeholder="密码" />
            </div>
            <div class="form-group">
                <input type="checkbox" id="autoLogin"/><label for="autoLogin">下次自动登录</label>
            </div>
                <p class="text-center">
                    <button class="btn btn-danger btn-block">登录</button>
                </p>
            </form>
        </div>
        <!--5.引入jQuery库-->
<script src="js/jquery-1.10.2.min.js"></script>
<!--6.引入bootstrap插件-->
<script src="js/bootstrap.min.js"></script>
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
你想要了解如何使用 Bootstrap 创建一个登录页面吗?下面是一个简单的示例代码,可以帮助你开始: ```html <!DOCTYPE html> <html> <head> <title>登录页面</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> </head> <body> <div class="container"> <div class="row justify-content-center"> <div class="col-md-6"> <h2 class="mt-5 mb-3">用户登录</h2> <form> <div class="form-group"> <label for="username">用户名</label> <input type="text" class="form-control" id="username" placeholder="请输入用户名"> </div> <div class="form-group"> <label for="password">密码</label> <input type="password" class="form-control" id="password" placeholder="请输入密码"> </div> <button type="submit" class="btn btn-primary">登录</button> </form> </div> </div> </div> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> </body> </html> ``` 这是一个基本的登录页面,使用了 Bootstrap 4 的样式和布局。你可以根据需要进行修改和定制。记得在 `head` 标签中引入 Bootstrap 的 CSS 文件,并在 `body` 标签的结尾处引入 Bootstrap 的 JavaScript 文件,以确保样式和交互功能正常工作。希望对你有所帮助!如有其他问题,请随时提问。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值