分类树

2016-07-07 14:55 来源:www.chinab4c.com 作者:ecshop专家



我作出来怎么少了分类栏的字???求解!!!!!菜鸟敬上!!!!!!!!!




  1. /*商品分类树*/CSS

  2. .my_left_category{
  3. width:211px;
  4. font-size:12px;
  5. }


  6. .my_left_category h1{
  7. background-image:url(images/spring_06.jpg);
  8. height:20px;
  9. background-repeat:no-repeat;
  10. font-size:14px;
  11. font-weight:bold;
  12. padding-left:15px;
  13. padding-top:8px;
  14. margin:0px;
  15. color:#FFF;
  16. }

  17. .my_left_category .my_left_cat_list{
  18. width:209px;
  19. border-color:#ce2020;
  20. border-style:solid;
  21. border-width:0px 1px 1px 1px;
  22. line-height:13.5pt;
  23. }
  24. .my_left_category .my_left_cat_list h2 {
  25. margin:0px;
  26. padding:3px 5px 0px 9px;
  27. }
  28. .my_left_category .my_left_cat_list h2 a{
  29. color:#d6290b;
  30. font-weight:bold;
  31. font-size:14px;
  32. line-height:22px;
  33. }

  34. .my_left_category .h2_cat{
  35. width:209px;
  36. height:26px;
  37. background-image:url(images/my_menubg.gif);
  38. background-repeat:no-repeat;
  39. line-height:26px;
  40. font-weight:normal;
  41. color:#333333;
  42. position:relative;
  43. }

  44. .my_left_category a{
  45. font:12px;
  46. text-decoration:none;
  47. color:#333333;
  48. }
  49. .my_left_category a:hover{
  50. text-decoration:underline;
  51. color:#ff3333;
  52. }

  53. .my_left_category h3{
  54. margin:0px;
  55. padding:0px;
  56. height:26px;
  57. font-size:12px;
  58. font-weight:normal;
  59. display:block;
  60. padding-left:8px;
  61. }
  62. .my_left_category h3 span{color:#999999; width:145px; float:right;}
  63. .my_left_category h3 a{ line-height:26px;}

  64. .my_left_category .h3_cat{
  65. display:none;
  66. width:204px;
  67. position:absolute;
  68. left:184px;
  69. margin-top:-26px;
  70. cursor:auto;
  71. }

  72. .my_left_category .shadow{
  73. position:inherit;
  74. background:url(images/shadow_04.gif) left top;
  75. width:204px;
  76. }

  77. .my_left_category .shadow_border{
  78. position:inherit;
  79. width:200px;
  80. border:1px solid #959595; margin-top:1px;
  81. border-left-width:0px;
  82. background:url(images/shadow_border.gif) no-repeat 0px 21px;
  83. background-color:#ffffff;
  84. margin-bottom:3px
  85. }
  86. .my_left_category .shadow_border ul{margin:0; padding:0; margin-left:15px}
  87. .my_left_category .shadow_border ul li {
  88. list-style:none;
  89. padding-left:10px;
  90. background-image:url(images/my_cat_sub_menu_dot.gif);
  91. background-repeat:no-repeat;
  92. background-position:0px 8px;
  93. float:left;
  94. width:75px;
  95. height:26px;
  96. overflow:hidden;
  97. }

  98. .my_left_category .active_cat{ z-index:99;background-position:0 -25px;cursor:pointer;}
  99. .my_left_category .active_cat h3 { font-weight:bold}
  100. .my_left_category .active_cat h3 span{ display:none;}
  101. .my_left_category .active_cat div{display:block;}
复制代码







商品分类树代码:
  1. <meta http-equiv="Content-Type" content="text/html; charset=gbk">
  2. <div class="my_left_category">
  3. <h1>商品分类</h1>
  4. <div class="my_left_cat_list">
  5. {assign var="pre_item_level" value=-1}
  6. <!--{foreach from=cat_list(0,0,false,3,false) item=cat}-->
  7. {if $cat.level lt 2 && $pre_item_level gt 0}
  8. </ul></div></div></div></div>
  9. {/if}

  10. {if $cat.level eq 0}
  11. <h2><a href="{$cat.url}">{$cat.name|escape:html}</a></h2>
  12. {elseif $cat.level eq 1}
  13. <div class="h2_cat" onmouseover="this.className='h2_cat active_cat'" onmouseout="this.className='h2_cat'">
  14. <h3><SPAN> - {$cat.cat_desc|escape:html}</SPAN><a href="{$cat.url}" title="{$cat.name|escape:html}">{$cat.name|escape:html}</a></h3>
  15. <div class="h3_cat">
  16. <div class="shadow">
  17. <div class="shadow_border">
  18. <ul>
  19. {elseif $cat.level eq 2}
  20. <li><a href="{$cat.url}" title="{$cat.name|escape:html}">{$cat.name|escape:html}</a></li>
  21. {/if}

  22. {assign var="pre_item_level" value=$cat.level}
  23. <!--{/foreach}-->
  24. {if $pre_item_level gt 0}
  25. </ul></div></div></div></div>
  26. {/if}

  27. </div>
  28. </div>
复制代码

回答:
做个记号备用

有人解答嘛?

老大CSS里边的图片在那里?

图有下载的。自已去下载。