原生就js实现购物车增删改查,供大家参考,具体内容如下
效果图:
代码:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> *{ margin:0;padding:0; } .fl{ float: left; } .fr{ float: right; } .clearfix{ clear: both; zoom: 1; } .shopping{ width: 1200px; margin: 0 auto; font-size: 14px; } .shopping .header{ width: 100%; height: 50px; line-height: 50px; background: #ccc; color: #000000; font-weight: bold; text-align: left; } .shopping .header ul{ padding-left: 30px; } .shopping .header ul li{ width: 190px; list-style: none; } .shopping .footer{ width: 100%; height: 50px; background: #ccc; color: #000000; text-align: left; } .shopping .footer .footlf{ width: 200px; line-height: 50px; margin-left: 30px; } .shopping .footer .footrg{ width: 600px; text-align:right; } .shopping .footer .footrg span:nth-child(1){ display: inline-block; padding: 0px 25px; background: black; color: white; line-height: 48px; margin-right: 20px; } .shopping .footer .footrg span:nth-child(2),.shopping .footer .footrg span:nth-child(3){ display: inline-block; margin-right: 20px; } .shopping .footer .footrg span:nth-child(4){ font-size:16px; font-weight: bold; line-height: 50px; margin-right: 50px; } .shopping .footer .footrg s{ color: red; } .content{ margin: 10px 0px; } .content dl{ margin-bottom: 20px; } .content dl dt{ border: 1px solid #CCCCCC; height: 30px; line-height: 30px; font-weight: bold; } .content dl dt{ padding-left: 20px; } .content dl dd{ padding-left: 20px; border: 1px solid #CCCCCC; height: 100px; line-height: 100px; border-top: none; } .content dl dd ul li{ list-style: none; } .content dl dd ul li img{ width: 80px; height: 80px; vertical-align: middle; } .content dl dd ul li{ width: 190px; } .content dl dd ul li s{ color: red; font-weight: bold; } .content dl dd ul li input{ width: 30px; } s{ text-decoration: none; } .content .del{ cursor: pointer; } .minus{ padding: 0px 10px; background: red; cursor: pointer; } .plus{ padding: 0px 10px; background: red; cursor: pointer; } input{ cursor: pointer; } </style> </head> <body> <div class="shopping"> <div class="header clearfix"> <ul> <li class="fl"><input type="checkbox" name="" class="all">全选</li> <li class="fl">商品</li> <li class="fl">单价</li> <li class="fl">数量</li> <li class="fl">价格</li> <li class="fl">操作</li> </ul> </div> <div class="content"> <dl> <dt>店铺:xxx快餐店1</dt> <dd> <ul> <li class="fl"><input type="checkbox" name="" class="ischeck"></li> <li class="fl"> <img src="/UploadFiles/2021-04-02/01.jpg">以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
华山资源网 Design By www.eoogi.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
华山资源网 Design By www.eoogi.com
暂无评论...
稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!
昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。
这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。
而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?
更新日志
2024年09月24日
2024年09月24日
- 群星《左耳·听见爱情》星文唱片[WAV+CUE]
- 陈美玲.1987-孤单的心【EMI百代】【WAV+CUE】
- 黄乙玲.2005-甲你作伴【亚律音乐】【WAV+CUE】
- 张雨生.1997-口是心非【丰华】【WAV+CUE】
- 群星《右耳·聆听私语》星文唱片[WAV+CUE]
- VitoCadonau-ramur-encasaveglia(2024)[24-44,1]FLAC
- Mozart--ArthurGrumiaux(2024)[24BT]WAV
- 国风大师纯音系列《付娜广粤古筝》1CD[MP3][364.4MB]
- 国风大师纯音系列《罗晶-古筝情缘》1CD[MP3][75.1MB]
- 国风大师纯音系列《民乐琴王童丽-与古筝的约会》1CD[MP3][166.4MB]
- 刘美君.1993-被你纵坏【SONY】【WAV+CUE】
- 黄鹤翔.1998-爱的咏叹调【中唱】【WAV+CUE】
- 薰妮.1983-梦+淡(2000年永恒真存双碟版)【永恒】【WAV+CUE】
- 方伊琪.1976-时光消逝(2015复黑限量版)【风行】【WAV+CUE】
- 群星.1990-宝丽金影视金曲巡礼【宝丽金】【WAV+CUE】