原型界面样式编写
实现内容
1.用户登录注册界面编写
2.前台主界面编写
3.搜索书籍界面编写
4.购物车界面编写
代码块编写
用户登录注册界面代码
login.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>登录界面</title>
<link rel="seylesheet" type="text/css" href="css/bootstrap.css"/>
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
<style>
.form-signin{
position: relative;
width:400px;
top:200px;
left:50%;
margin-left:-200px;
}
</style>
</head>
<body class="text-center">
<form class="form-signin" action="" method="post">
<img class="mb-4" src="/docs/assets/brand/bootstrap-solid.svg" alt="" width="72" height="72">
<h1 class="h3 mb-3 font-weight-normal">登录界面</h1>
<div class="form-label-group">
<input type="text" id="name" name="nmae" class="form-control" placeholder="请输入用户名...." required autofocus>
</div>
<div class="form-label-group">
<input type="password" id="pwd" name="pwd" class="form-control" placeholder="请输入密码..." required>
</div>
<div class="checkbox mb-3">
<label>
<input type="checkbox" value="remember-me"> Remember me
</label>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
<p class="mt-5 mb-3 text-muted">© 2017-2020</p>
</form>
<script src="../bootstrap-4.4.1/dist/js/bootstrap.js"></script>
</body>
</html>
register.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>登录界面</title>
<link rel="seylesheet" type="text/css" href="css/bootstrap.css"/>
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
<style>
.form-signin{
position: relative;
width:400px;
top:200px;
left:50%;
margin-left:-200px;
}
</style>
</head>
<body class="text-center">
<form class="form-signin" action="" method="post">
<img class="mb-4" src="/docs/assets/brand/bootstrap-solid.svg" alt="" width="72" height="72">
<h1 class="h3 mb-3 font-weight-normal">登录界面</h1>
<div class="form-label-group">
<input type="text" id="name" name="nmae" class="form-control" placeholder="请输入用户名...." required autofocus>
</div>
<div class="form-label-group">
<input type="password" id="pwd" name="pwd" class="form-control" placeholder="请输入密码..." required>
</div>
<div class="checkbox mb-3">
<label>
<input type="checkbox" value="remember-me"> Remember me
</label>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
<p class="mt-5 mb-3 text-muted">© 2017-2020</p>
</form>
<script src="../bootstrap-4.4.1/dist/js/bootstrap.js"></script>
</body>
</html>
前台主界面编写
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>飞凡网上书店</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
</head>
<body>
<!--top-->
<div id="top_div">
<p class="left">您好,欢迎来到飞凡网上书店 !</p>
<p class="right"><a href="#">登陆</a> | <a href="#">注册</a> | <a href="#">我的购物车</a> | <a href="#">网站首页</a></p>
<div class="fixed">