类别侧边栏,有子类别 [英] category sidebar which have sub categories

查看:115
本文介绍了类别侧边栏,有子类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要创建类别侧边栏,其中包含来自数据库的更多子类别我有html示例帮助我动态地从数据库创建它



 <   ul     id   =  sideManu    class   =  nav nav-tabs nav-stacked >  
< li class = subMenu open > < a > ELECTRONICS [230] < / a >
< ul >
< li > < a class = active href = products.html > 相机(100)< / a > < / li >
< li > < a href = products .html > 计算机,平板电脑& laptop(30)< / a > < / li >
< li > < a href = products.html > 手机(80)< / a > < / li >
< li > < a href = products.html > 声音&愿景(15)< / a > < / li >
< / ul >
< / li >
< li class = subMenu > < a > 衣服[840] < / a <跨度lass =code-keyword>>
< ul < span class =code-attribute> style = display:none >
< li > < a href = products.html > 女装(45)< / a > < / li >
< li > < a href = products.html > 女鞋(8)< / a > < ; / li >
< li > < a href = products.html > < i class =icon-chevron-right> 女士手提包(5)< / a > < / li >
< li > < a < span class =code-attribute> href = products.html > 男士服装(45)< span class =code-keyword>< / a > < / li >
< span class =code-keyword>< li > < a href = products.html > 男鞋(6)< / a > < / li >
< li > < 一个 href = < span class =code-keyword> products.html > 儿童服装(5)< / a > < / li >
< li > < a href = products.html > 童鞋(3)< / a > < / li >
< / ul >
< / li >

解决方案

i want create category sidebar which have further sub-categories from database i have html example help me to create it from database dynamically

<ul id="sideManu" class="nav nav-tabs nav-stacked">
 <li class="subMenu open"><a>ELECTRONICS [230]</a>
    <ul>
    <li><a class="active" href="products.html">Cameras (100) </a></li>
    <li><a href="products.html">Computers, Tablets & laptop (30)</a></li>
    <li><a href="products.html">Mobile Phone (80)</a></li>
    <li><a href="products.html">Sound & Vision (15)</a></li>
  </ul>
 </li>
 <li class="subMenu"><a>CLOTHES [840] </a>
   <ul style="display: none">
    <li><a href="products.html">Women's Clothing (45)</a></li>
    <li><a href="products.html">Women's Shoes (8)</a></li>
    <li><a href="products.html">Women's Hand Bags (5)</a></li>
    <li><a href="products.html">Men's Clothings  (45)</a></li>
    <li><a href="products.html">Men's Shoes (6)</a></li>
    <li><a href="products.html">Kids Clothing (5)</a></li>
    <li><a href="products.html">Kids Shoes (3)</a></li>
    </ul>
  </li>

解决方案

这篇关于类别侧边栏,有子类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆