سلام دوستان من برای سایت فروشگاهیم(بر پایه سیستم فروشگاهی سایت هموار) بر طبق زیر دسته بندی درختی ساختم:
<div class="widget"> <h3>دسته ها</h3> <style> .treeview ul{ margin: 0px; padding: 0; } .treeview li{ background: white url(http://s3.picofile.com/file/7549042254/list.gif) no-repeat 0px 3px; list-style-type: none; padding-left: 32px; margin-bottom: 3px; } .treeview li.submenu{ background: white url(http://s3.picofile.com/file/7549039672/closed.gif) no-repeat 0px 3px; cursor: hand !important; cursor: pointer !important; } .treeview li.submenu ul{ display: none; }