HTML+CSS简单应用实例——购物网站的制作(一)

这是一个用CSS、HTML、JS制作的简单的购物网站,这篇文章是主页,在后面文章中依次有登录页、商品页、客服页面等。有很多不足之处,希望大家能给我指出来。

先看一下效果图。
(所有图片都是从淘宝、京东、唯品会搜的)




分析:最上方是DIV+列表,注册可以点进去进入注册页面。下面服饰区、美妆区部分是列表,其中又嵌套了列表。今日推荐部分是一个大表格,导航栏部分是一个小表格,位置设为固定。最下方是一个脚本,用DIV做成。
下面是具体代码:

<!DOCTYPE html>
<html><head><meta charset="UTF-8"><title>淘淘网--让购物更简单</title>   <style>.topBar{height: 40px; font-size: 15px; color:#666;line-height: 35px;background-color:white;}                .topBar-left{float: left;list-style: none;}                .topBar-right{float: right; list-style: none;}                .topBar-left li,.topBar-right li{margin: 0 2px;float:left;text-align: center;}         .topBar-left li a:hover,.topBar-right li:hover {color:rgb(236, 77, 14);}       .logoBar{height:100px;width: 100%;left: 0px; background-color:white }         .search_box{ width: 447px;padding-top: 33px;padding-left: 160px; }             .search_text{background-color: white; width:360px;height: 35px;padding:0 8px;position:absolute;top:70px;left:450px; }           .search_btn{ width: 70px;height: 39px;position:absolute;top:70px;left:835px;font-size:14px;background-color:violet;font-family: "微软雅黑";color: white;}.navBox{height: 35px;font-size: 20px;color:blueviolet;}       .main{list-style: none;}                .main li{margin: 0 80px;float:left;text-align: left;} .main li a{padding:0 5px; display: block;height: 35px;}  .main li a:visited,.main li a:link {color:#DC143C;text-decoration: none;}.main li ul{padding:0 0;margin: 0 0;cursor: pointer;display:none;list-style: none;}.main li ul li{text-align: left;line-height: 25px;float:none;}    .main li:hover ul{display:block;position:absolute;}.main li ul li:hover{color:#DC143C;background:azure;} .footer{ width:1100px;margin:0 auto;border-top:#dddddd 1px solid;margin-top:150px; height: 210px;  background: rgb(245,245,245);text-align: center;}.footer p{ margin-top:20px;}.footer a{color:#666;}.footer a:hover{ color:rgb(228, 121, 89);}.footer .fp{color:#666;margin-top:10px;}.footimg{width="120px";height: "10px";}.list{position: fixed;top: 250px;left: 1380px;font-family: "微软雅黑";font-size: 20px;color:white;}.list a {text-decoration: none;color:white;}</style>     </head><body bgcolor="plum" ><div class="headerBar"><div class="topBar"><ul class="topBar-left">
<a name="Top"></a>                <li>欢迎来到淘淘网!</li></ul><ul class="topBar-right"><li >购物车</li><li >收藏夹</li><li><a href="#">登陆</a></li><li><a href="register.html" target="_blank">注册</a></li></ul></div>  <div class="logoBar"><div class="search_box"><input type="text" class="search_text" ><input type="button" value="搜 索" class="search_btn">   </div></div></div>    <div class="navBox"><div class="Main"><ul class="main"><li><a class="main1" href="#" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;服饰区</a> <ul >  <li href="#" >女装</li><li href="#">男装</li><li href="#">女鞋</li><li href="#">男鞋</li><li href="#">卫衣</li><li href="#">外套</li> </ul></li>                                       <li><a  class="main2" href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;美妆区</a><ul>  <li href="#">面膜</li><li href="#">香水</li><li href="#">口红</li><li href="#">洁面</li><li href="#">精华</li><li href="#">美甲</li> </ul></li>      <li><a  class="main3" href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;饰品区</a><ul>  <li href="#">项链</li><li href="#">耳饰</li><li href="#">帽子</li><li href="#">手表</li><li href="#">珠宝</li><li href="#">眼镜</li> </ul></li>  <li><a  class="main4" href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;生活区</a><ul>  <li href="#">沙发</li><li href="#">灯具</li><li href="#">橱柜</li><li href="#">药品</li><li href="#">烤箱</li><li href="#">空调</li> </ul></li><li><a  class="main5" href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;食品区</a><ul>  <li href="#">饼干</li><li href="#">米线</li><li href="#">月饼</li><li href="#">酸奶</li><li href="#">名酒</li><li href="#">咖啡</li> </ul></li>   </ul></div><table cellspacing="2" align="center"><tr><td><a href="wdress.html" target="_blank"><img src="img/大牌特卖.jpg" width="400" height="300"></a></td><td><video width="500" height="300" src="img/女装视频.mp4" autoplay="autoplay" loop="loop"></video></td><td><img src="img/一站购.png" width="400" height="300"  ></td>    </tr>     </table><table class="list" border="1" bgcolor="violet" bordercolor="white"cellpadding="5"><tr><td><a href="wdress.html" target="_blank">热门女装>></a></td></tr><tr><td><a href="time.html" target="_blank">限时抢购>></a></td></tr><tr><td><a href="shopping.html" target="_blank">淘淘超市>></a></td></tr><tr><td><a href="wdress.html" target="_blank">今日特卖>></a></td></tr><tr><td><a href="service.html" target="_blank">联系客服>></a></td></tr><tr><td><a href="#Top">回到顶部>></a></td></tr></table><p align="center" style="font-family: 宋体;font-size: 30px;color: black;"><b>-今日推荐-</b></p><table  border="1" bordercolor="crimson" cellspacing="10" align="center"><tr><td rowspan="2"><a href="wdress.html" target="_blank"><img src="img/卫衣.jpg" width="300px" height="600px"></a></td><td rowspan="2" colspan="2"><a href="wdress.html" target="_blank"><img src="img/wph6.jpg" width="600px" height="600px"></a></td><td><a href="wdress.html" target="_blank"><img src="img/妖精1.jpg" width="300px" height="300px"></a></td>                </tr><tr><td><img src="img/妖精2.jpg" width="300px" height="300px"></td>                     </tr><tr><td><img src="img/妖精3.jpg" width="300px" height="300px"></td> <td><img src="img/裤子.jpg"  width="300px" height="300px"></td><td><img src="img/包.jpg" width="300px" height="300px"></td><td><img src="img/夏连衣裙.jpg" width="300px" height="300px"></td>         </tr><tr><td><img src="img/口红1.jpg" width="300px" height="300px"></td> <td><img src="img/鞋3.jpg"  width="300px" height="300px"></td><td><img src="img/手机.jpg" width="300px" height="300px"></td><td><img src="img/鞋1.jpg" width="300px" height="300px"></td>        </tr><tr><td><img src="img/手表.jpg" width="300px" height="300px"></td> <td><img src="img/鞋2.jpg"  width="300px" height="300px"></td><td><img src="img/口红2.jpg" width="300px" height="300px"></td><td><img src="img/帽子.jpg" width="300px" height="300px"></td>        </tr></table> <div class="footer"><p><a href="#">联系我们</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="#">诚聘英才</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="#">合作招商</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="#">广告平台</a></p><p class="fp">本网站直接或间接向消费者推销商品或者服务的商业宣传均属于“广告”(包装及参数、售后保障等商品信息除外)</p><div class="footimg"><img src="img/冠名商标2.jpg" width="70px";height="60px";><img src="img/冠名商标.jpg" width="60px";height="40px"><img src="img/商标.jpg" width="70px";height="60px"><img src="img/商标2.jpg" width="60px";height="30px"></div></div></body>
</html>

HTML+CSS简单应用实例——购物网站的制作(一)相关推荐

  1. HTML+CSS简单应用实例——购物网站的制作(二)注册页面

    HTML+CSS简单应用实例--购物网站的制作(二)注册页面 接上一篇文章,本片文章是注册页面. 下面是效果图: 分析:上方欢迎注册是DIV,下面是表单,点击登录按钮会出现注册成功提示.下方为脚本,同 ...

  2. HTML+CSS简单应用实例——购物网站的制作(四)

    HTML+CSS简单应用实例--购物网站的制作(四) 本页面是第二个商品页面,做了个限时抢购的页面. 下面是效果图: 分析:上方限时抢购和12点准时开抢是两个DIV,下面每个商品是一个单独的DIV,总 ...

  3. HTML+CSS简单应用实例——购物网站的制作(五)

    HTML+CSS简单应用实例--购物网站的制作(五) 本页面是第三个商品页面. 下面是效果图: 分析:上方淘淘超市是一个DIV,下面超值套装每个商品是一个DIV,美容护肤是一个大表格.下面是脚本. 具 ...

  4. HTML+CSS简单应用实例——购物网站的制作(七)

    HTML+CSS简单应用实例--购物网站的制作(七) 本页面是客服页面. 效果图: 分析:上方是一个DIV,下面是两个表格,表格里有列表. 具体代码: <!DOCTYPE html> &l ...

  5. HTML+CSS 简单的顶部导航栏菜单制作

    导航栏的制作: 技术要求: CSS HTML各类标签 实现目的: 制作导航栏菜单 代码分析: 基本样式清除 无序列原点删除 下划线删除 文字默认居中 a标签设置块级元素 伪类选择器对a状态修饰 分步实 ...

  6. HTML+CSS+JavaScript仿京东购物网站制作 html静态网页设计制作 dw静态网页成品模板素材网页 web前端网页设计与制作 div静态网页设计

    HTML实例网页代码, 本实例适合于初学HTML的同学.该实例里面有设置了css的样式设置,有div的样式格局,这个实例比较全面,有助于同学的学习,本文将介绍如何通过从头开始设计个人网站并将其转换为代 ...

  7. 个人简介 - HTML/CSS简单页面实例

    用 div + css 控制页面 1.position属性: absolute(绝对定位):参照浏览器的左上角,配合TOP.RIGHT.BOTTOM.LEFT(下面简称TRBL)进行定位. 在没有设定 ...

  8. web前端期末大作业(我的家乡广安网页设计与制作)HTML+CSS网页设计实例 企业网站制作

    家乡旅游景点网页作业制作 网页代码运用了DIV盒子的使用方法,如盒子的嵌套.浮动.margin.border.background等属性的使用,外部大盒子设定居中,内部左中右布局,下方横向浮动排列,大 ...

  9. javabean+servlet+JSP页面做购物网站 (附效果图+源码)

    一个简单的jsp购物网站 概要 需求 用到的技术 效果图 登录页 登陆结果 购物页 消费记录页 管理用户信息和商品信息 数据库格式 踩过的坑 jdbc进行数据库操作 java动作指令结合jsp脚本 j ...

  10. div+css静态网页设计 电商购物网站设计(55页) 电商网页设计制作 简单静态HTML网页作品 购物网页作业成品 学生商城网站模板

    HTML5期末大作业:电商购物网站设计--电商购物网站设计(55页) 电商网页设计制作 简单静态HTML网页作品 购物网页作业成品 学生商城网站模板 文章目录 HTML5期末大作业:电商购物网站设计- ...

最新文章

  1. 基于Android和SpringBoot的购物App
  2. Mysql 主从复制(AB复制)
  3. python帮助文档中文版下载-python3.5.2官方帮助文档 参考手册(CHM版)
  4. session登录练习使用解决null显示问题
  5. [MATLAB调试笔记]Update magnetic field in one step
  6. 噪声与振动控制工程手册_声学分享客噪声与振动控制篇大型隔振工程案例介绍...
  7. 【转】3.1(译)构建Async同步基元,Part 1 AsyncManualResetEvent
  8. android 字符串调用方法名,AndroidJNI.CallStringMethod 调用字符串方法
  9. SQL 中操作XML类型数据
  10. oracle索引online样例,在线创建索引的问题案例
  11. android sdkversion
  12. java+jxls利用excel模版进行导出
  13. 打开access文件 提示文件名无效_分享在PS软件打开图像时提示无效的JPEG的解决方法...
  14. python如何安装scrapy库_Python爬虫:Scrapy框架的安装和基本使用
  15. tkmybatis 权威指南 官方文档
  16. 测度论与概率论基础学习笔记7——3.1积分的定义
  17. es6 7 8 9 10特性归纳
  18. 游戏辅助原理与制作02-植物大战僵尸03-冷却时间基址
  19. DoublyLinkedList
  20. 【教资必过!!!】思想品德课程理论基本知识

热门文章

  1. C盘快要满啦-给Windows10优化瘦身
  2. matlab空间复杂度测试,NSGA2算法matlab实现(多个测试函数)
  3. NSGA2算法代码理解
  4. 计算机网络工程概论论文,网络工程专业导论论文提纲格式模板 网络工程专业导论论文框架怎么写...
  5. 李宏毅机器学习笔记——Transformer
  6. tomcat修改http长度限制_解决浏览器与服务器请求url长度限制
  7. GB28181 密解播放器
  8. OSPF配置命令总结
  9. 医疗保险前台系统ER图1
  10. C# 如何将Excel表格复制到Word中并保留格式