jQuery购物车】的更多相关文章

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"…
这一段时间在学习web前端,最近学了jQuery库,深感其强大,下面通过写购物车的下拉框做法,把自己的理解和大家交流一下,欢迎各位大神指点指正,废话不多说,开始正题: 购物车html: <!-- 购物车 start --> <div class="shopping" id="shopping-box"> <a href="" id="shoptext"><i class="i…
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=GB18030"/> <title></title> <script type="text/javascript" src="../js/jquery-1.9.1.min.js&qu…
效果图 HTML代码:(非表格方式) <div class="nav2"> <input type="checkbox" class="checkAll" /> 全选 <span>商品信息</span> <ul class="fr"> <li>单价</li> <li>数量</li> <li>小计</li…
html代码 <!--shoppingCar start-->  <table id="TB">   <tr>    <td colspan="7" class="title">     <div class="img_box">      <div class="logo_box">       <img src="i…
<html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript" src="js/jquery-1.7.2.js" ></script> <style> input{ width: 25px; } li{ list-style: none; } <…
h1 { text-align: center; } .cart { width: 1200px; height: 600px; margin: 0 auto; border: 1px solid #efefef; } .cart>ul { width: 100%; height: 100%; list-style: none; padding:; margin:; } .cart>ul>li { width: 100%; height: 100px; border-bottom: 1p…
github https://github.com/amibug/fly demo https://github.com/amibug/fly…
//计算总价 function cartTotal(){ var total = 0; //循环计算的列,选中计算的数量和价格 //accAdd为精BigDecimal准计算方法 $.each($(".eatmenu_foot"), function() { var priceSplit = $(this).children(":first").text().split('¥'); var price = parseInt(priceSplit[1]); var c…
这是html代码 <div class="gwcxqbj"> <div class="gwcxd center"> <div class="top2 center"> <div class="sub_top fl"> <input type="checkbox" name='all' id="all" value="quan…