⽹上书店Html⽹页——table实现这个是⽹上某Java web学习视频⾥的第⼀个项⽬,觉得效果还⾏,特别适合新⼿练⼿,就记录下来。
效果:
代码:
<html>
<head>
<meta charset=UTF-8">
<title>图书商城</title>
</head>
<body>
<!-- 整个页⾯ -->
<div id="page">
<!-- top -->
<div id="top">
<table width="100%">
<tr>
<td width="70%">
<img alt="logo" src="images/logo.png" />
</td>
<td>
<img alt="cart" src="images/cart.gif">
<a href="#">购物车</a>|
<a href="#">帮助中⼼</a>|
<a href="#">我的账户</a>|
<a href="#">新⽤户注册</a>
</td>
</tr>
</table>
</div>
<!-- menu -->
<div id="menu">
<table width="100%" bgcolor="#1C3F09">
<tr align="center">
<td>
<td>
<a href="#"><font color="#ffffff">⽂学</font></a>
<a href="#"><font color="#ffffff">⽣活</font></a>
<a href="#"><font color="#ffffff">计算机</font></a>
<a href="#"><font color="#ffffff">外语</font></a>
<a href="#"><font color="#ffffff">经管</font></a>
<a href="#"><font color="#ffffff">励志</font></a>
<a href="#"><font color="#ffffff">社科</font></a>
<a href="#"><font color="#ffffff">学术</font></a>
<a href="#"><font color="#ffffff">少⼉</font></a>
<a href="#"><font color="#ffffff">艺术</font></a>
<a href="#"><font color="#ffffff">原版</font></a>
<a href="#"><font color="#ffffff">科技</font></a>
<a href="#"><font color="#ffffff">考试</font></a>
<a href="#"><font color="#ffffff">⽣活百科</font></a>
<a href="#"><font color="yellow">全部商品⽬录</font></a>
</td>
</tr>
</table>
</div>
<!-- search -->
<div id="search">
<table width="100%" bgcolor="#B6B684">
<tr align="right">
<td>
Search
<input type="text"/>
<input type="button" value="搜索"/>
</td>
</tr>
</table>
</div>
<!-- content -->
<div id="content">
<div align="right">
⾸页 > 旅游 > 图书列表
</div>
<h1>商品⽬录</h1>
<hr/>
<h1>计算机类</h1>
<span>共xxx种商品</span>
<hr/>
<div>
<img alt="productlist" src="images/productlist.gif" width="100%"> </div>
<div>
<table width="100%">
<tr align="center">
<td>
<div>
<img alt="book" src="bookcover/101.jpg">
</div>
<div>
<span>书名:xxx</span><br/>
<span>售价:xxx</span>
</div>
</td>
<td>
<div>
<img alt="book" src="bookcover/102.jpg">
</div>
<div>
<span>书名:xxx</span><br/>
<span>售价:xxx</span>
<span>售价:xxx</span>
</div>
</td>
<td>
<div>
<img alt="book" src="bookcover/103.jpg">
</div>
<div>
<span>书名:xxx</span><br/>
<span>售价:xxx</span>
</div>
</td>
<td>
<div>
<img alt="book" src="bookcover/104.jpg">
</div>
<div>
<span>书名:xxx</span><br/>
<span>售价:xxx</span>
网页html下载</div>
</td>
</tr>
<tr align="center">
<td>
<div>
<img alt="book" src="bookcover/105.jpg">
</div>
<div>
<span>书名:xxx</span><br/>
<span>售价:xxx</span>
</div>
</td>
<td>
<div>
<img alt="book" src="bookcover/106.jpg">
</div>
<div>
<span>书名:xxx</span><br/>
<span>售价:xxx</span>
</div>
</td>
<td>
<div>
<img alt="book" src="bookcover/107.jpg">
</div>
<div>
<span>书名:xxx</span><br/>
<span>售价:xxx</span>
</div>
</td>
<td>
<div>
<img alt="book" src="bookcover/108.jpg" width="130" height="197"> </div>
<div>
<span>书名:xxx</span><br/>
<span>售价:xxx</span>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
<!-- bottom -->
<div id="bottom">
<table width="100%" bgcolor="#EFEEDC">
<tr>
<td rowspan="2">
<img alt="logo" src="images/logo.png">
</td>
<td>
CONTACT US
</td>
</tr>
<tr>
<td>
copyright 2008 © BookStore All Rights RESERVED </td>
</tr>
</table>
</div>
</div>
</body>
</html>
代码⾥的图⽚资源见:
download.csdn/download/richard1997/10253770
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论