商品分类树修改

2016-07-07 15:01 来源:www.chinab4c.com 作者:ecshop专家

这个我原来的代码,请问如何修改成一排2个 category_tree.lbi 文件
  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  2. <div class="CategoryTree">
  3. <span class="Top"></span>
  4. <span class="Bottom"></span>
  5. <!--{foreach from=$categories item=cat}-->
  6. <div class="Categories clearfix">
  7. <a href="{$cat.url}"><strong>{$cat.name|escape:html}</strong></a>
  8. <!--{if $cat.cat_id}-->
  9. <ul>
  10. <li>
  11. <!--{foreach name=childs from=$cat.cat_id item=child}-->
  12. ·<a href="{$child.url}" title="{$child.name|escape:html}">{$child.name|escape:html}</a>
  13. <!--{/foreach}-->
  14. </li>
  15. </ul>
  16. <!--{/if}-->
  17. </div>
  18. <!--{/foreach}-->
  19. </div>
复制代码

style.css 文件.
  1. .CategoryTree{ background:url(images/tree.gif) repeat-y; width:225px; position:relative; padding:28px 0 20px 0;}
  2. .CategoryTree span{ display:block; width:225px;}
  3. .CategoryTree .Categories{background:url(images/cidtree.gif) repeat-y; margin-left:3px; line-height:28px; padding-left:14px;}
  4. .CategoryTree .Categories A:link{color:#bc0823;}
  5. .CategoryTree .Categories A:visited{color:#bc0823;}
  6. .CategoryTree .Categories A:hover{ color:#000;}
  7. .CategoryTree .Categories A:active {color: #bc0823;}
  8. .CategoryTree .Categories li{background-color:#fff; line-height:20px; margin:0 8px 0 -14px; padding-left:4px;}
  9. .CategoryTree .Categories li a:link{color:#000;}
  10. .CategoryTree .Categories li a:visited{color:#000;}
  11. .CategoryTree span.Top{ background:url(images/titone.gif) 0 -315px; height:32px;position:absolute; top:0px; left:0px; }
  12. .CategoryTree span.Bottom{ background:url(images/titone.gif) 0 -374px; height:15px; position:absolute; bottom:0px; left:0px; overflow:hidden;}
复制代码