2016-10-01 76 views
-1

我只是想知道如何使一個下拉菜單,它內部的另一個下拉列表中,因此,例如:下拉在一個下拉

Dropdown Title 
    Title 1 
    Title 2 
     Item 1 
     Item 2 
     Item 3 
    Title 3 

我做了一個下拉菜單至今:

<li class="dropdown"> 
    <a class="dropbtn">Novel</a> 
    <div class="dropdown-content"> 
     <a class="dropbtn"><h3>Volume 1</h3></a> 
     <a href="index1.html">Chapter 1</a> 
     <a href="index2.html">Chapter 2</a> 
     <a href="index3.html">Chapter 3</a> 
     <a href="index4.html">Chapter 4</a> 
     <a href="index5.html">Chapter 5</a> 
     <a href="index6.html">Chapter 6</a> 
    </div> 
</li> 

我幾乎不知道如何製作第二個下拉菜單 - 它來自「第1卷」h3。我也認爲最好保持垂直方向。提前致謝。

+0

http://stackoverflow.com/a/39711307/5304610 –

回答

0

使用Bootstrap類,因爲它會爲您提供了選項多下拉

的幫助,請參閱本link

+0

我有點找一種沒有引導的方法 – Rambo

+0

引導是很容易的方法 – 2016-10-03 05:52:16

+0

是的,但我不打算爲它使用引導 – Rambo