运行效果
@charset "utf-8";
.content form {
margin:0;
}
table {
border:1px solid #ccc;
background:#e4e4e4;
}
td {
border-top:1px solid #ccc;
background:#fff;
font-size:12px;
}
th,td,.quantity {
text-align:center;
font-family:arial, helvetica, sans-serif;
}
.price {
width:11%;
text-align:right;
}
.whl {color:#090;cursor:help}
.stotal {
text-align:right;
width:15%;
}
.quantity {
border:none;
width:66px;
height:16px;
}
#productrow {width:49%}
#totalrow th {
text-align:right;
}
#quantityrow {width:13%;}
#functions {border-top:1px solid #999;padding-top:10px}
#functions p {margin-top:10px}
#functions span {color:#00f;margin:0 2px;cursor:pointer}
#functions input {
border:1px solid #666;
border-top:1px solid #fff;
border-left:1px solid #fff;
font-family:arial, helvetica, sans-serif;
font-size:12px;
height:20px;
margin:0 2px;
}
.chk *{
background-color:#eeeeee;
}
删除 | 商品 | 价钱 | 数量 | 总共 |
---|---|---|---|---|
$8000 | $160000 | |||
$8400 | $8400 | |||
总共: | 21 | $168400 |
<!--
function init(){
var input = document.cart.getelementsbytagname('input');
for(var i=0;i<input.length;i++)
if(/checkbox/.test(input[i].type))
input[i].onclick=function(){
docheck(this,this.checked);
}
}
function selectall(check) {
var input = document.cart.getelementsbytagname('input');
for(var a = 0; a < input.length; a++) {
if(input[a].type == 'checkbox' && /^delete\[/.test(input[a].name))
docheck(input[a],check);
}
}
function selectbyprice(whl) {
var input = document.cart.getelementsbytagname('input');
for(var a = 0; a = 20 && whl || !whl && input[a].value<20);
}
function docheck(ele,b){
ele.checked=b;
while(ele&&ele.tagname!="tr")
ele=ele.parentelement;
if(!ele)
return;
ele.classname=b?'chk':'';
ele.getelementsbytagname('input')[1].disabled=b;
}
init();
document.write('
选择: 全部, 无, 普通价钱, 批发价钱
');
-->
[ctrl+a 全选 注:如需引入外部js需刷新才能执行]