【问题标题】:I want to create navigation bar for my application [closed]我想为我的应用程序创建导航栏 [关闭]
【发布时间】:2016-03-31 07:33:02
【问题描述】:

我想实现这样的目标..

注意:将动态添加更多子(即第二个和第三个)元素。 'first' 是根元素只出现一次。 请建议我怎么做?另外它应该是可折叠的。

【问题讨论】:

  • 请添加您所做的并放置您的一些代码。
  • 仅使用“div”的任何具体原因?这可以通过 'ul' 'li' 结构更好地实现。
  • @zipkundan 我已经实现了这部分,我们的客户已经要求这个功能。所以无论如何我可以将它与我现有的代码合并

标签: html css menu navigation


【解决方案1】:

我觉得这个链接对你有用

http://mackpexton.com/projects/TreeMenu/index.htm

【讨论】:

    【解决方案2】:

    请添加您的程序的一些代码 一些示例菜单

    <style>
    #header {
        background-color:black;
        color:white;
        text-align:center;
        padding:5px;
    }
    #nav {
        line-height:30px;
        background-color:#eeeeee;
        height:300px;
        width:100px;
        float:left;
        padding:5px;	      
    }
    #section {
        width:350px;
        float:left;
        padding:10px;	 	 
    }
    #footer {
        background-color:black;
        color:white;
        clear:both;
        text-align:center;
       padding:5px;	 	 
    }
    </style>
    <!DOCTYPE html>
    <html>
    <head>
    
    </head>
    <body>
    
    <div id="header">
    <h1>City Gallery</h1>
    </div>
    
    <div id="nav">
    London<br>
    Paris<br>
    Tokyo
    </div>
    
    <div id="section">
    <h2>London</h2>
    <p>asd</p>
    <p>type text </p>
    </div>
    
      
    
    </body>
    </html>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-20
      • 1970-01-01
      • 2020-10-13
      • 1970-01-01
      • 2017-01-16
      • 2021-03-28
      • 2023-02-16
      • 2015-09-11
      相关资源
      最近更新 更多