用BOOTSTRAP样式布一个HTML登录页面,所有label用中文。 控件有:LOGO图片,用户名,密码,记住我,控件的label与控件一行显示。
时间: 2023-05-23 17:01:59 浏览: 53
以下是使用Bootstrap样式布局一个HTML登录页面,所有label都是中文的代码:
```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>登录页面</title>
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="panel panel-default">
<div class="panel-heading">
<img src="logo.png" alt="LOGO">
<h3 class="panel-title">用户登录</h3>
</div>
<div class="panel-body">
<form>
<div class="form-group">
<label for="username">用户名</label>
<input type="text" class="form-control" id="username">
</div>
<div class="form-group">
<label for="password">密码</label>
<input type="password" class="form-control" id="password">
</div>
<div class="checkbox">
<label>
<input type="checkbox">记住我
</label>
</div>
<button type="submit" class="btn btn-primary btn-block">登录</button>
</form>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
```
这个HTML页面使用了Bootstrap的样式来布局,并且所有的label都是中文的。控件包括LOGO图片、用户名和密码输入框以及记住我复选框,它们的label都和控件在同一行。最后有一个登录按钮,点击它可以提交表单。