<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
*{
padding: 0
margin: 0
}
.content input{
padding: 5px
}
.content label:before{
content: '*'
font-size: 15px
color: red
}
.content label{
width: 110px
display: inline-block
text-align: right
}
.content .list-tit{
font-weight: 700
border-top: 1px solid #ccc
}
.content a{
font-size: 13px margin-left: 10px
}
ul.content li{
padding: 10px 20px
}
</style>
</head>
<body>
<ul class="content">
<li class="list-tit">账户信息</li>
<li><label>邮箱:</label><input type="email" /><a href="">手机注册</a><a href="">用户名注册</a></li>
<li><label>请输入密码:</label><input type="password" /></li>
<li><label>请确认密码:</label><input type="password" /></li>
<li><label>验证码:</label><input type="text" style="width: 60px"/></li>
<li class="list-tit">联系人信息</li>
<li><label>邮箱:</label><input type="password" /></li>
<li><label>邮箱:</label>
<select name="">
<option value="">请选择</option>
<option value="">选项1</option>
<option value="">选项2</option>
</select>
</li>
</ul>
</body>
</html>
1、首先我们需要在桌面上,新建一张记事本
2、然后我们需要打开记事本,编写代码
3、然后我们需要把记事本修改后缀名为.html
4、然后我们需要在桌面上就会有一张网页,这一点很重要。
5、最后我们需要需要在浏览器上运行该网页
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>登录</title>
<link href="css/bootstrap.min.css" rel="stylesheet"></head><body><nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="./">jsp作业</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="login.html">登录</a></li>
</ul>
</div>
</div></nav><div class="container">
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-4">
<form class="form-signin" target="submitFrame" method="post">
<h2 class="form-signin-heading">登录到jsp作业</h2>
<label for="inputEmail">Email</label>
<input type="email" id="inputEmail" class="form-control" placeholder="请输入Email" required autofocus><br>
<label for="inputPassword">密码</label>
<input type="password" id="inputPassword" class="form-control" placeholder="请输入密码" required>
<div class="checkbox">
<label>
<input type="checkbox" value="remember-me" checked="checked">记住密码</label>
</div>
<button type="submit" class="btn btn-primary" id="btn-login">登录</button>
<a href="reg.html" class="btn btn-default">注册</a>
</form>
<iframe style="display: none" name="submitFrame" src="about:blank"></iframe>
</div>
<div class="col-md-4">
</div>
</div>
<script src="js/jquery.min.js"></script></body></html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)