产品分类树有问题 请高手解答一下
2016-07-07 16:06 来源:www.chinab4c.com 作者:ecshop专家
| 是这样的 因为本人网站 产品不多 所以修改了一下分类树 但是出现了问题 因为有很多一级分类没有二级分类 但是我做了一个滑动的效果没有二级分类的 一级分类也会显示出这个效果就出现下面的情况    图一是有二级分类的一级分类效果图二是没有二级分类的一级分类效果 你们看到图2也出现了这个效果 我想知道怎么样修改能让当没有二级分类的时候效果 不显示出来 应该是要写判断语句吧我就是写不好 我的LBI跟CSS如下请高手解答一下 .my_left_category{ width:150px; font-size:12px; font-family:arial,sans-serif; letter-spacing:2px; } .my_left_category h1{ height:20px; background-repeat:no-repeat; font-size:14px; font-weight:bold; padding-left:15px; padding-top:8px; margin:0px; color:#6699FF; } .my_left_category .my_left_cat_list{ width:192px; border-right:3px #185ec4 solid; border-left:3px #185ec4 solid; border-width:0px 3px 0px 3px; line-height:13.5pt; } .my_left_category .my_left_cat_list h2 { margin:0px; padding:3px 5px 0px 9px; } .my_left_category .my_left_cat_list h2 a { color:#d6290b; font-weight:bold; font-size:14px; line-height:22px; } .my_left_category .my_left_cat_list h2 a:hover { color:#d6290b; font-weight:bold; font-size:14px; line-height:22px; } .my_left_category .h2_cat{ width:180px; height:19px; background-image:url(http://www.ueone.net/upload/360buy/my_menubg.gif); background-repeat:no-repeat; line-height:20px; font-weight:normal; color:#333333; position:relative; } .my_left_category .h2_cat_1{ width:148px; height:26px; background-image:url(http://www.ueone.net/upload/360buy/my_menubg_1.gif); background-repeat:no-repeat; line-height:26px; font-weight:normal; color:#333333; position:relative; } .my_left_category a{ font:12px; text-decoration:none; color:#333333; } .my_left_category a:hover{ text-decoration:underline; color:#ff3333; } .my_left_category h3{ margin:0px; padding:0px; height:25px; font-size:12px; font-weight:normal; font-family:arial,sans-serif; display:block; padding-left:8px; background:url() } .my_left_category h3 span{color:#999999; width:145px; float:right;} .my_left_category h3 a{ line-height:26px;} .my_left_category .h3_cat{ display:none; width:204px; position:absolute; left:180px; margin-top:-26px; cursor:auto; } .my_left_category .shadow{ position:inherit; background:url(http://www.ueone.net/upload/360buy/shadow_04.gif) left top; width:204px; } .my_left_category .shadow_border{ position:inherit; width:200px; border:1px solid #000000; margin-top:1px; border-left-width:1px; background:url(http://www.ueone.net/upload/360buy/shadow_border.gif) no-repeat 0px 21px; background-color:#ffffff; margin-bottom:3px } .my_left_category .shadow_border ul{margin:0; padding:0; margin-left:15px} .my_left_category .shadow_border ul li { list-style:none; padding-left:10px; background-image:url(http://www.ueone.net/upload/360buy/my_cat_sub_menu_dot.gif); background-repeat:no-repeat; background-position:0px 8px; float:left; width:110px; height:26px; overflow:hidden; letter-spacing:0px; } .my_left_category .active_cat{ z-index:99;background-position:0 -25px;cursor:pointer;} .my_left_category .active_cat h3 { font-weight:bold} .my_left_category .active_cat h3 span{ display:none;} .my_left_category .active_cat div{display:block;} .top{height:8px; overflow:hidden; background:url(images/bg.gif) no-repeat 0px 0px;} .top span{ height:8px; width:8px; display:block; float:right; background:url(images/category_tree.jpg) no-repeat right top;} .bottom{height:8px; overflow:hidden; font-size:1px; background:url(images/bg.gif) no-repeat 0px -24px;} .bottom span{height:8px; width:8px; float:right; background:url(images/category_tree2.jpg) no-repeat right top;} 库文件是 <div class="top"><span></span></div> <div class="my_left_category"> <div class="my_left_cat_list"> <h1>Categories</h1> <!--{foreach from=$categories item=cat}--> <div class="h2_cat"> <h3><a href="{$cat.url}">{$cat.name|escape:html}</a></h3> <div class="h3_cat"> <div class="shadow"> <div class="shadow_border"> <ul> <!--{foreach from=$cat.cat_id item=child}--> <li><a href="{$child.url}">{$child.name|escape:html}</a></li> <!--{/foreach}--> </ul> </div> </div> </div> </div> <!--{/foreach}--> </div> </div> <div class="bottom"><span></span></div> 希望热心人解答谢谢了 | 
回答:
| 高手没有回答的么?对于你们的举手之劳可以方便很多人。 | 
| 有热心肠的人在么?以前很多的 现在怎么都没看到了 | 
| 求人不如求己自己解决了等了一天心都凉了 自己尝试去写才发现有些问题没那么复杂大家都多动手啊  | 
 
        
					
						
					
					
						
                          
					
				 
      
      最近更新
常用插件
- ecshop的oss插件
                                  ecshop的oss插件免费共享了,oss,ecshoposs... 
- ecshop没登陆情况下订单查
                                  ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下... 
- ecshop订单聚合插件
                                  ecshop订单聚合插件,主要是为了方便ecshop中订单产品到货情况的分析和... 
- ecshop虚拟发货插件
                                  ecshop虚拟发货插件介绍: ecshop虚拟发货插件,主要为了通过后台手动录... 
- ecshop注册审核插件
                                  ecshop插件介绍:ecshop会员注册审核插件,主要是在前台提供给注册的时候... 
ecshop热门问答
ecshop热门资料
          
               
            ecshop商品分类列表页TITLE 
                
            ecshopASP空间 
                
            ecshopPink 
                
            ecshop上传文件 
                
            ecshop巴巴商城 
                
            ecshop晕倒 
                
            ecshophttp 
                
            ecshop请示 
                
            ecshop街道 
                
            ecshop网站文章进不去 
                
            ecshop品牌大图 
                
            ecshop不能购物 
                
            支付方式 
                
            ecshop好手 
                
            ecshop赠品 
                
            ecshop模板共享 
                
            ecshop治疗 
                
            ecshopalibaba 
                
            ecshop聚美优品 
                
            ecshop订单记录 
                
            ecshop数据使用 
                
            ecshop商品项目 
                
            kindeditor 
                
            ecshop通道 
                
            ecshop精典 
                
            ecshop合理 
                
            ecshop支付方式乱码 
                
            ecshopT恤 
                
            ecshopjoyo粉色模板 
                
            ecshop市内快递 
             
        
      



