用的和茶网模版,一个导航栏的问题

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



想把首页菜单改成这样的。该怎么弄啊
231853citmy0m8rt4r3bx0.jpg

category_tree的代码是

  1. <link href="../themes/hechaV2.5/skin/tm7/style_test/home7.css" rel="stylesheet" type="text/css" />
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  3. <div class="menu7">
  4. <div class="abody">
  5. <div class="mxal">
  6. <p class="til">所有商品分类</p>
  7. <div class="lnav7 list">
  8. <!--{foreach from=get_categories_tree() item=cat name=cat}-->
  9. <dl <!--{if $smarty.foreach.cat.index mod 2 eq 1}-->class="xc1"<!--{/if}-->>
  10. <dt><a href="{$cat.url}"><big>{$cat.name|escape:html}</big><!--[if gte IE 7]><!--></a><!--<![endif]-->
  11. <!--[if lte IE 6]><table><tr><td><![endif]-->
  12. <ul>
  13. <li class="tx"><strong><a href="{$cat.url}">{$cat.name|escape:html}</a></strong><em> </em></li>
  14. <li class="txt">
  15. <!--{foreach from=$cat.cat_id item=child}-->
  16. <a href="{$child.url}">{$child.name|escape:html}</a>
  17. <!--{/foreach}-->
  18. <div class="clear"></div>
  19. </li>
  20. <li class="def">
  21. <!--{foreach from=$cat.cat_id item=child name=child}-->
  22. <!--{if $smarty.foreach.child.index < 2}-->
  23. <a href="{$child.url}">{$child.name|escape:html}</a>
  24. <!--{/if}-->
  25. <!--{/foreach}-->

  26. </li>
  27. </ul>
  28. <!--[if lte IE 6]></td></tr></table></a><![endif]-->
  29. </dt>
  30. <dd>
  31. <!--{foreach from=$cat.cat_id item=child name=child}-->
  32. <!--{if $smarty.foreach.child.index < 2}-->
  33. <a href="{$child.url}">{$child.name|escape:html}</a>
  34. <!--{/if}-->
  35. <!--{/foreach}-->
  36. </dd>
  37. </dl>
  38. <!--{/foreach}-->

  39. <div class="clear"></div>
  40. <!--<div id="navtitle" class="title"><a href="http://www.hecha.cn/sitemap.php" title="点击查看全部分类" target="_blank">热门分类</a></div>-->
  41. </div>
  42. </div>

  43. <div class="mxnx">
  44. <ul>

  45. <li {if $navigator_list.config.index eq 1}class="this"{/if}><a href="index.php"><span title="{$lang.home}">{$lang.home}</span></a></li>
  46. <!-- {foreach name=nav_middle_list from=$navigator_list.middle item=nav} -->
  47. <li {if $nav.active eq 1}class="this"{/if}><a href="{$nav.url}"><span title="{$nav.name}">{$nav.name}</span></a></li>
  48. <!-- {/foreach} -->

  49. <div class="clear"></div>
  50. </ul>
  51. </div>
  52. <div class="rbox">
  53. <p class="p1"><a href="group_buy.php">今日团购</a></p>
  54. </div>

  55. <div class="clear"></div>
  56. </div>
  57. </div>
复制代码