我使用Twitter Bootstrap创建的下拉菜单适用于HTML文档,但不会下载PHP文档。 Here is a PHP document你可以看到我的意思。当我点击"更多"选项卡,它不会下拉。
为什么此菜单不适用于HTML和PHP文档?
以下是页面来源:
<body>
<div class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a href"" class="navbar-brand">Colorful Cards</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class=""><a href="homepage.html">Home</a></li>
<li class=""><a href="thatonepage.html">Past Cards</a></li>
<li class="active"><a href="contact.php">Contact</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">More<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="inverse-dropdown"><a href="bibliography.html">Bibliography</a></li>
<li class="divider inverse-dropdown"></li>
<li class="inverse-dropdown"><a href="about.html">About</a></li>
<li class="divider inverse-dropdown"></li>
<li class="inverse-dropdown"><a href="">Coming Soon...</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>