我在bootstrap 3.0中看到導航菜單在菜單摺疊時不工作的問題。要查看示例,請轉到此處:http://apexenergetics.azurewebsites.net/Bootstrap 3.0菜單在移動設備上不起作用
我開始思考也許我有一個缺少Javascript文件或其他東西。我已經測試了我的iPhone5以及我的iPad上的網站。在瀏覽器中查看時,它工作正常。
更新:它似乎在Windows手機上正常工作。此外,只有帶有下拉菜單的項目才能正常工作。鏈接/按鈕沒有下拉工作。
<header>
<div class="row">
<div class="col-xs-12 col-md-6">
<img src="@Href("~/img/logo.png")" alt="Apex Energetics">
</div>
<div class="col-xs-12 col-md-6">
@*<form class="form-search">
<input type="text" class="input-medium search-query" placeholder="Search Apex Energetics">
<button type="submit" class="search-btn" >Search</button>
</form>*@
</div>
</div>
<!-- Static navbar -->
<div class="navbar">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="@Href("~/index")">Home</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Apex Complexes <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown-toggle">
<a href="@Href("~/products/K-Line_Formulas")">K-Line Formulas</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/K-plex")"> »K-Line Nutritionals</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/K-Line_Creams")"> »K-Line Creams</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/K-Line_Homeopathics")"> »K-Line Homeopathics</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/Z-plex")">TerrainZyme® Formulas</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/L-plex")">Cellegion Formula®</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Homeopathics <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown-toggle">
<a href="@Href("~/products/antitox")">Antitox®</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/A-plex")"> -B-Plex</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/B-plex")"> -B-Plex</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/C-plex")"> -C-Plex</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/D-plex")"> -D-Plex</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/E-plex")"> -E-Plex</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/N-plex")"> -N-Plex</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/W-plex")"> -W-Plex</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/S-plex")">Allertox</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/R-plex")">RegenRx</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/G-plex")">Metaboplex</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/M-plex")">Endotox</a>
</li>
<li class="dropdown-toggle">
<a href="@Href("~/products/flowers")">Flower Combinations</a>
</li>
</ul>
</li>
<li><a href="@Href("~/products/purvela")">Purvela™</a></li>
<li><a href="@Href("~/pages/contact")">Contact Us</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</header>
發表了一些代碼... – Nix