Web 登录页面

<!DOCTYPE html>
<html lang="en" class="default-style">

<head>
        <!--链入外部样式-->
	<link rel="stylesheet" type="text/css" href="../bootstrap-5.1.3-dist/css/bootstrap.css">
</head>
<style type="text/css">
  .max{
    margin: auto;
    margin-top: 250px;
    width: 500px;
    height: 200px;
  }
  .form-check {
    display: inline-block;
  }
</style>
<body background="https://pic3.zhimg.com/v2-b74cef27ef47952fd01ecded9255713e_r.jpg">
  <div class="max">
    <h6 class="card-header">
      Inline
    </h6>
    <div class="card-body">
      <form class="form-inline mb-4">
        <label class="sr-only">Name</label>
        <input type="text" class="form-control mr-sm-2 mb-2 mb-sm-0" placeholder="Jane Doe">

        <label class="sr-only">Username</label>
        <div class="input-group mr-sm-2 mb-2 mb-sm-0">
          <div class="input-group-prepend">
            <div class="input-group-text">@</div>
          </div>
          <input type="text" class="form-control" placeholder="Username">
        </div>

        <label class="form-check mr-sm-2 mb-2 mb-sm-0">
          <input class="form-check-input" type="checkbox" style="margin-top: 20px;">
          <div class="form-check-label" style="margin-top: 15px;">
            Remember me
          </div>
        </label>
        <button type="submit" class="btn btn-primary" style="float: right; margin: 10px; background: none; color: black;">Submit</button>
      </form>

      <form class="form-inline">
        <label class="form-label mr-sm-2">Preference</label>
        <select class="custom-select mr-sm-2 mb-2 mb-sm-0">
          <option selected>Choose...</option>
          <option value="1">One</option>
          <option value="2">Two</option>
          <option value="3">Three</option>
        </select>

        <label class="custom-control custom-checkbox mr-sm-2 mb-2 mb-sm-0" style="float: right; ">
          <input type="checkbox" class="custom-control-input">
          <span class="custom-control-label">Remember my preference</span>
        </label>
        <center>
         <button type="submit" class="btn btn-primary"style="background: none; color: black;">Submit</button>
       </center>
     </form>
   </div>
 </div>
</div>

</body>
</html>

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值