给这段代码配一个bootstrap 风格的css 样式。 <!DOCTYPE html> <html> <head> <title>用户登录</title> <link rel="stylesheet" type="text/css" href="login.css"> </head> <body> <h1>用户登录</h1> <form action="登录.HTML" method="post"> <label style="display: inline-block;" for="username">用户名:</label> <input style="display: inline;"type="text" id="username" name="username"><br><br> <label style="display: inline-block;" for="password">密 码:</label> <input style="display: inline;"type="password" id="password" name="password"><br><br> <label style="display: inline-block;" for="remember">记住我:</label> <input style="display: inline;"type="checkbox" id="remember" name="remember"><br><br> <input type="submit" value="登录"> </form> </body> </html>
时间: 2023-05-19 10:05:18 浏览: 100
可以使用以下代码来配一个bootstrap 风格的css 样式:
<!DOCTYPE html>
<html>
<head>
<title>用户登录</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1>用户登录</h1>
<form action="登录.HTML" method="post">
<div class="form-group">
<label for="username">用户名:</label>
<input type="text" class="form-control" id="username" name="username">
</div>
<div class="form-group">
<label for="password">密码:</label>
<input type="password" class="form-control" id="password" name="password">
</div>
<div class="checkbox">
<label><input type="checkbox" id="remember" name="remember">记住我</label>
</div>
<button type="submit" class="btn btn-default">登录</button>
</form>
</div>
</body>
</html>
阅读全文