|
|
分类代码:
[ol] 金属类{loop $child $i $c}{if in_array($c[catid], array(1,5,12,13,14,15))}{set_style($c[catname], $c[style])} {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 2);}{loop $sub $j $s}{if $j 复制代码
CSS部分(估计是这部分):
[ol]ct-5 h4 { background-color:#f6fafb; float:left; font-size:14px; font-weight:bold; overflow:hidden; text-align:center; width:20px; margin:1px; display:inline; border:1px solid #dbe9f4; }.consumer h4, .industrial h4, .materials h4 { height:108px; padding:44px 4px 0; }.consumer, .industrial, .materials { height:156px; border-bottom:1px solid #eaeaea; clear:both; padding:1px; }.business h4 { height:98px; padding:12px 4px 0; }.business { height:114px; border-bottom:1px solid #cfdae4; clear:both; padding:1px; }.ct-5 dl { float:left; width:280px; margin:10px 0 0 10px; display:inline; }.ct-5 dt a { font-size:14px; font-weight:bold; color:#065ba5; padding:0 2px; }.ct-5 dt i a, .ct-5 dt a:hover { color:#F60; }.ct-5 dd { height:1.5em; line-height:1.5em; margin-left:-5px; overflow:hidden; }.ct-5 dd a { border-left:1px solid #ccc; margin-left:-1px; padding-left:6px; padding-right:6px; color:#666; }.ct-5 dd a:hover { color:#F60; }.ct-5 div.consumer.hover, .ct-5 div.industrial.hover, .ct-5 div.materials.hover, .ct-5 div.business.hover, .ct-5 div.consumer:hover, .ct-5 div.industrial:hover, .ct-5 div.materials:hover, .ct-5 div.business:hover { z-index:200; position:relative; padding-top:0; border:1px solid #7cc0e3; background-color:#f4f8fb; }.cn_left { width:580px; float:left; }.cn_right { float:right; width:320px; margin:10px 0 0 0; border-left:1px dotted #eaeaea; display:inline; padding-left:12px; }[/ol]复制代码 |
|