生成CSS菜单表单数据库.(递归函数) [英] generate css menu form database.(Recursive Function)

查看:64
本文介绍了生成CSS菜单表单数据库.(递归函数)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要为该表格格式(无限深度)生成css菜单的递归函数. -请勿使用XML格式

ID为整数.
ParentID为int.
标题为Int.


    I want recursive function that generate css menu for this table format(infinity depth). -No XML Format Use please

    ID as int.
    ParentID as int.
    Title as Int.


      <li>main1</li>
          <li>main2
              <ul>
                  <li>sub</li>
              </ul>
          </li>
      </


      ul>

      谢谢


      ul>

      thanks

      推荐答案

      这将完成我认为的工作:

      https://dotnetfinder.wordpress.com/2010/09/14/aspsooperfishmenu/ [ ^ ]

      您可能需要对其稍作修改,但它可以工作.
      This would do the job I think:

      https://dotnetfinder.wordpress.com/2010/09/14/aspsooperfishmenu/[^]

      You would have to adapt it a little, but it would work.


      这篇关于生成CSS菜单表单数据库.(递归函数)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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