You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

221 lines
9.0 KiB

5 years ago
<!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">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>产品介绍</title>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="../css/p-i.css">
<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询media queries功能 -->
<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<div class="top-nav">
<div class="container clear-float">
<div class="fl">
<a class="item" href="#">首页</a>
</div>
<div class="fr">
<a class="item" href="#">购物车</a>
<a class="item" href="#">我的订单</a>
<a class="item" href="#">收藏夹</a>
<a class="item" href="#">登录</a>
<a class="item" href="#">注册</a>
</div>
</div>
</div>
<div class="header clear-float">
<div class="container">
<div class="col-md-5 logo">
<div class="row">
<div class="btn-group center-block" style="margin-left: 10px;margin-top: 10px">
<button id="area" onclick="getarea()" class="btn btn-default btn-lg dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
changsha <span class="caret"></span>
</button>
<script>
var choosearea=document.getElementById("area")
function getarea(){
area.value=choosearea;
}
</script>
<ul class="dropdown-menu">
<li><a href="#" id="HUNNU">湖南师范大学</a></li>
<li><a href="#" id="HUNU">湖南大学</a></li>
<li><a href="#" id="ZN">中南大学</a></li>
</ul>
</div>
<div style="padding-left: 200px">
<div class="span-1 " >闲书网<i></i></div>
<div class="span-2" >买旧书,上闲书<i></i></div>
</div>
</div>
</div>
<div class="col-md-7 search-bar">
<input type="text">
<button>搜索</button>
</div>
</div>
</div>
<div class="row" style="margin-top: 80px">
<div class="product">
<div class="container clear-float">
<div class="col-md-5">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="../img/深入理解java虚拟机.jpg" alt="...">
</div>
<div class="item">
<img src="../img/深入理解java虚拟机_02.jpg" alt="...">
<div class="carousel-caption">
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="col-md-7">
<div class="price-background">
<div class="product-info">
ZARA新款 女装 秋冬折扣 宽松长款羊毛大衣外套 08083666401
</div>
<div>
价格&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="text-decoration:line-through;">¥899.00</span>
</div>
<div >
促销价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="price">¥459.00</span>
</div>
<div>
本店活动&nbsp;&nbsp;&nbsp;&nbsp;<span class="note">满99元包邮</span>
</div>
</div>
<div class="row " style="padding-left: 30px ;padding-top: 10px;padding-bottom: 10px">
运费&nbsp;&nbsp; &nbsp; 浙江杭州至长沙&nbsp;&nbsp;快递0.00
</div>
<div class="row">
<table class="table" style="text-align: center">
<tr>
<td>
月销量:<b class="xiaoliang">1246</b>
</td>
<td>
累计评价:<b class="leijipingjia">1331</b>
</td>
<td>
送闲书币:<b class="songxianshubi">30</b>
</td>
</tr>
</table>
</div>
<div class="row" style="padding-left: 33px">
数量
<input type="button" onclick="add()" value="+" style="margin-left: 30px">
<input type="text" id="result" style="width: 50px;margin-left: 10px" placeholder="1">
<input type="button" onclick="sub()" value="-" style="margin-left: 10px">
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #aaa">库存10件</span>
</div>
<div class="row">
<button type="button" class="btn btn-danger" style="margin-left: 60px; margin-top: 20px" >立即购买</button>
<button type="button" class="btn btn-danger" style="margin-left: 60px; margin-top: 20px" >加入购物车</button>
</div>
<div class="row" >
<table class="table" style="margin-top: 20px;margin-left: 30px">
<tr>
<td>服务承诺</td>
<td>正品保证</td>
<td>极速退款</td>
<td>赠运费险</td>
<td><div class="btn-group">
<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
支付方式 <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">微信支付</a></li>
<li><a href="#">支付宝支付</a></li>
<li><a href="#">信用卡</a></li>
</ul>
</div></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="row">
</div>
<script>
function add() {
var result1 =document.getElementById("result").value;
result1++;
result.value=result1;
}
function sub() {
var result1 =document.getElementById("result").value;
result1--;
if(result1>=0){
result.value=result1;
}
else {
result.value=0;
}
}
</script>
</body>
</html>