购物网站html5源代码 制作html购物网站源代码

发布时间:2024-12-24 15:17

利用折扣代码网站收集和分享各类优惠码 #生活技巧# #节省生活成本# #购物优惠技巧# #折扣代码#

如果你也想自学HTML5,可以关注我。我会把踩过的坑分享给你,相关的教程以及配套的讲解 ,分享给大家:

 https://edu.51cto.com/lesson/539349.html

一、程序代码:

1.HTML代码

1.2JS代码

1.3CSS代码

* { margin: 0; padding: 0; } a { color: #666; text-decoration: none; } body { padding: 20px; color: #666; } .fl{ float: left; } .fr { float: right; } table { border-collapse: collapse; border-spacing: 0; border: 0; text-align: center; width: 1400px; } th, td { border: 1px solid #CADEFF; } th { background: #e2f2ff; border-top: 3px solid #a7cbff; height: 30px; } td { padding: 10px; color: #444; } tbody tr:hover { background: RGB(238,246,255); } .checkbox { width: 60px; } .goods { width: 80px; /* background-color: red; */ text-align: center; } .sm { width: 120px; /* background-color: red; */ text-align: center; } .sj { width: 150px; /* background-color: red; */ text-align: center; } .goods img{ margin-left: 70px; width: 80px; /* border: #A7CBFF 2px solid; */ display: inline-block; /* float: left; */ text-align:center; } .goods span { display: block; width: 80px; margin-top: 20px; text-align: center; margin-left: 70px; /* float: left; */ } .price { width: 80px; } .count { width: 90px; } .count .add, .count input, .count .reduce { float: left; margin-right: -1px; position: relative; z-index: 0; } .count .add, .count .reduce { height: 23px; width: 17px; border: 1px solid #e5e5e5; background: #f0f0f0; text-align: center; line-height: 23px; color: #444; } .count .add:hover, .count .reduce:hover { color: #f50; z-index: 3; border-color: #f60; cursor: pointer; } .count input { width: 50px; height: 15px; line-height: 15px; border: 1px solid #aaa; color: #343434; text-align: center; padding: 4px 0; background-color: #fff; z-index: 2; } .subtotal { width: 80px; color: red; font-weight: bold; } .operation { width: 80px; } .operation span:hover, a:hover { cursor: pointer; color: red; text-decoration: underline; } img { width: 100px; height: 80px; /*border: 1px solid #ccc;*/ margin-right: 10px; float: left; } .foot { width: 1400px; margin-top: 10px; color: #666; height: 48px; border: 1px solid #c8c8c8; background-color: #eaeaea; background-image:linear-gradient(RGB(241,241,241),RGB(226,226,226)); position: relative; z-index: 8; } .foot div, .foot a { line-height: 48px; height: 48px; } .foot .select-all { width: 100px; height: 48px; line-height: 48px; padding-left: 5px; color: #666; } .foot .closing { border-left: 1px solid #c8c8c8; width: 100px; text-align: center; color: #000; font-weight: bold; background: RGB(238,238,238); cursor: pointer; } .foot .total{ margin: 0 20px; cursor: pointer; } .foot #priceTotal, .foot #selectedTotal { color: red; font-family: "Microsoft Yahei"; font-weight: bold; } .foot .selected { cursor: pointer; } .foot .selected .arrow { position: relative; top:-3px; margin-left: 3px; } .foot .selected .down { position: relative; top:3px; display: none; } .show .selected .down { display: inline; } .show .selected .up { display: none; } .foot .selected:hover .arrow { color: red; } .foot .selected-view { width: 935px; border: 1px solid #c8c8c8; position: absolute; height: auto; background: #ffffff; z-index: 9; bottom: 48px; left: -1px; display:none; } .show .selected-view { display: block; } .foot .selected-view div{ height: auto; } .foot .selected-view .arrow { font-size: 16px; line-height: 100%; color:#c8c8c8; position: absolute; right: 330px; bottom: -9px; } .foot .selected-view .arrow span { color: #ffffff; position: absolute; left: 0px; bottom: 1px; } #selectedViewList { padding: 20px; margin-bottom: -20px; } #selectedViewList div{ display: inline-block; position: relative; width: 100px; height: 80px; border: 1px solid #ccc; margin: 10px; } #selectedViewList div span { display: none; color: #ffffff; font-size: 12px; position: absolute; top: 0px; right: 0px; width: 60px; height: 18px; line-height: 18px; text-align: center; background: RGBA(0,0,0,.5); cursor: pointer; } #selectedViewList div:hover span { display: block; }1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.62.63.64.65.66.67.68.69.70.71.72.73.74.75.76.77.78.79.80.81.82.83.84.85.86.87.88.89.90.91.92.93.94.95.96.97.98.99.100.101.102.103.104.105.106.107.108.109.110.111.112.113.114.115.116.117.118.119.120.121.122.123.124.125.126.127.128.129.130.131.132.133.134.135.136.137.138.139.140.141.142.143.144.145.146.147.148.149.150.151.152.153.154.155.156.157.158.159.160.161.162.163.164.165.166.167.168.169.170.171.172.173.174.175.176.177.178.179.180.181.182.183.184.185.186.187.188.189.190.191.192.193.194.195.196.197.198.199.200.201.202.203.204.205.206.207.208.209.210.211.212.213.214.215.216.217.218.219.220.221.222.223.224.225.226.227.228.229.230.231.232.233.234.235.236.237.238.239.240.241.242.243.244.245.246.247.248.249.250.251.252.253.254.255.256.

二、效果图

购物网站html5源代码 制作html购物网站源代码_购物网站html5源代码

如果你也想自学HTML5,可以关注我。我会把踩过的坑分享给你,相关的教程以及配套的讲解 ,分享给大家:

 https://edu.51cto.com/lesson/539349.html

本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。

相关文章

网址:购物网站html5源代码 制作html购物网站源代码 https://www.yuejiaxmz.com/news/view/553961

相关内容

HTML5+CSS宠物网站设计
HTML5期末大作业:生活类购物商城网站设计——生活类购物商城模板(2页)
PHP+MySQL网络购物商城网站的设计与实现*(附源码 配置 文档)
HTML美食网站源码实现
打造高效便捷的在线购物平台:ASP.NET网上购物系统源代码推荐
大学生二手物品交易网站(源码+开题)
基于Java+SpringBoot+Vue+HTML5旧物置换网站(源码+LW+调试文档+讲解等)/旧物交换平台/二手物品交易/闲置物品置换/以物换物网站/旧货交易网站/废物利用网站/环保交换平台
【附源码】JAVA计算机毕业设计校园二手物品交易网站(源码+mysql+文档)
springboot旧物置换网站 (附源码)
数码时代必备的五大实用网站 让你生活工作更轻松

随便看看