我想问一下,为什么Bootstrap的下拉子菜单不能正常工作?我只是按照这个链接中的说明(http://getbootstrap.com/2.3.2/components.html)来操作,但是在子菜单的下一个子菜单上,下拉子菜单没有出现。顺便说一句,我没有改变或重写CSS中的类。
以下是我的代码! :)
<li class='dropdown'><a class='dropdown-toggle active' data-toggle='dropdown' href='#'><img src = 'images/forbank.png' height = 35 width = 35>Banking<span class='caret'></span></a>
<ul class='dropdown-menu'>
<li class = 'dropdown-submenu'><a tabindex='-1' href='#'><span class = 'glyphicon glyphicon-cog'> </span> Transaction</a>
<ul class='dropdown-menu' role = 'menu'>
<li><a tabindex='-1' href='#'> Withdrawal / Deposit </a></li>
<li><a tabindex='-1' href='#'> Fixed Deposit </a></li>
</ul>
</li>
<li role='separator' class='divider'></li>
<li><a href='#'><span class='glyphicon glyphicon-list-alt'> </span> Summaries </a></li>
<li><a href='#'><span class='glyphicon glyphicon-wrench'> </span> Settings </a></li>
</ul>
</li>