打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
获取三级分类
第一步,打开\themes\default\style.css文件,找到如下代码:

下面是原代码:
/*商品分类*/
   #category_tree{border:4px solid #f1faff; background-color:#fff;}
   #category_tree dl{margin:6px;}
   #category_tree dt{background:url(images/lineBg.gif) repeat-x left bottom;
   color:#3f3f3f;  padding:2px 0 3px 12px;
   }
   #category_tree dt a{background:url(images/bg.gif) no-repeat 0 -69px;
   color:#3f3f3f; padding-left:15px; text-decoration:none;
   }
   #category_tree dd{padding:3px 0 3px 10px;}
   #category_tree dd a{color:#404040; text-decoration:none;}
   #category_tree dd a:hover{color:#ff6600; text-decoration:none;}
   /*销售排行*/

现在下面的是修改后的代码:

/*商品分类*/
  #category_tree{border:4px solid #ffeef6; background-color:#fff;}
   #category_tree dl{margin:6px;}
   #category_tree dt{background:url(images/lineBg.gif) repeat-x left bottom;
   color:#3f3f3f;  padding:2px 0 3px 12px; width:150px;
   }
   #category_tree dt a{background:url(images/bg.gif) no-repeat 0 -69px;
   color:#3f3f3f; padding-left:15px; text-decoration:none;
   }
   #category_tree dd{padding:3px 0 3px 10px; width:70px; float:left;
        white-space:nowrap;
        word-break:keep-all;
        display: inline;
   }
   #category_tree dd a{color:#404040; text-decoration:none;}
   #category_tree dd a:hover{color:#ff6600; text-decoration:none;}
   /*销售排行*/

上面改完,基本两列可以正常使用了,在分来最下面很不美观,接下来,我们在进行修改!

打开文件\themes\default\library\category_tree.lbi

增加一行看代码红色就是增加部分!

<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<div class="box">
<div class="box_1">
  <div id="category_tree">
    <!--{foreach from=$categories item=cat}-->
     <dl>
     <dt><a href="{$cat.url}">{$cat.name|escape:html}</a></dt>
     <!--{foreach from=$cat.children item=child}-->
     <dd><a href="{$child.url}">{$child.name|escape:html}</a></dd>
     <!--{/foreach}-->
     </dl>
    <!--{/foreach}-->
<DL><DT><div align="center"> </div></DT></DL>
  </div>
</div>
</div>
<div class="blank5"></div>
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
DIV+CSS布局网页的实例
DIV+CSS中标签ul ol li dl dt dd用法 - ayajenson - 博
CSS——浮动布局改错题
如何给ecshop的一级类加图标
大图音画欣赏
牵挂
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服