html商品列表样式,简单的商品列表页选择切换js及样式介绍

_fliterShowNum = 3;

您已选择:

{$catname}

href="category.php?id={$current_cat_pr_id}">

{if $smarty.foreach.name.first}

function tiaozhuan_brand(){

this.location.href='{$brand.url}';

}

{/if}

{if $brand.selected}{if $brand.brand_name neq "全部"}

{$brand.brand_name}

style="cursor:hand" οnclick="tiaozhuan_brand()">

{/if}

{if

$smarty.foreach.name.first}

function tiaozhuan_price(){

this.location.href='{$grade.url}';

}

{/if}

{if $grade.price_range neq "全部"}{$grade.price_range}

style="cursor:hand"

οnclick="tiaozhuan_price()">

{/if}

{if $smarty.foreach.name1.first}

function tiaozhuan_attr{$smarty.foreach.name.iteration}_1(){

this.location.href='{$attr.url}';

}

{/if}

{if $attr.attr_value neq "全部"}{$attr.attr_value}

style="cursor:hand" οnclick="tiaozhuan_attr{$smarty.foreach.name.iteration}_1()">

{/if}

/* S商品列表选择css样式*/

.filter_table {

width: 100%;

background-color:#FFFFFF;

}

.filter_table td {

padding-top: 7px;

padding-bottom: 7px;

}

.lable {

width: 100px;

vertical-align: middle;

text-align: right;

color: #333;

font-weight: bold;

}

.scat {

padding-left: 20px;

padding-right: 10px;

}

.selected .scat span {

display: inline-block;

height: 19px;

line-height: 19px;

padding:1px;

*padding:0px;

padding-left: 5px;

*padding-bottom:2px;

_padding:3px 5px 0px;

border: 1px solid #f6406d;

}

.selected .scat span em{

_height:14px;

_line-height:14px;

_zoom:1;

}

.selected .scat span a {

display: inline-block;

margin:3px;

*margin:4px;

_margin:0px;

_margin-top:2px;

width: 13px;

height: 13px;

line-height:13px;

overflow:hidden;

color: #fff;

background: #f6406d url(../images/bg03.png) no-repeat;

text-align: center;

margin-left: 4px;

vertical-align:top;

}

.selected .scat span a:hover {

color: #fff!important;

text-decoration: none

}

/* E商品列表选择css样式*/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值