3
嗨, 我面臨一些問題。在購物車鏈接在標題我使用下拉菜單,但是當我將媒體大小更改爲響應(移動),所以它應該是簡單的超鏈接,但它可以作爲下拉式使用。這根據引導標記起作用。如何管理下拉鍊接到移動設備
因此,誰能告訴我如何更改標記,以便在桌面媒體大小將作品下拉和移動設備應該是這樣的鏈接
這裏標記爲整個頭部鏈接
<div class="row">
<div class="col-md-12">
<ul class="nav navbar-nav navbar-right">
@Html.Widget("header_links_before")
@Html.Action("AdminHeaderLinks", "Common")
@*<li>
@Html.Action("TaxTypeSelector", "Common")
</li>
<li>
@Html.Action("CurrencySelector", "Common")
</li>
<li>
@Html.Action("LanguageSelector", "Common")
</li>*@
@if (Model.IsAuthenticated)
{
<li><a href="@Url.RouteUrl("CustomerInfo")" class="account">@Model.CustomerEmailUsername</a></li>
<li><a href="@Url.RouteUrl("Logout")" class="ico-logout">@T("Account.Logout")</a></li>
}
else
{
<li><a href="@Url.RouteUrl("Register")" class="ico-register">@T("Account.Register")</a></li>
<li><a href="@Url.RouteUrl("Login")" class="ico-login">@T("Account.Login")</a></li>
}
@if (Model.AllowPrivateMessages)
{
<li>
<a href="@Url.RouteUrl("PrivateMessages", new { tab = "" })" class="ico-inbox">@T("PrivateMessages.Inbox")<span>@Model.UnreadPrivateMessages</span></a>
</li>
if (!string.IsNullOrEmpty(Model.AlertMessage))
{
<script type="text/javascript">
$(document).ready(function() {
displayPopupNotification('@Html.Raw(HttpUtility.JavaScriptStringEncode(Model.AlertMessage))', 'success', false);
});
</script>
}
}
@if (Model.ShoppingCartEnabled)
{
<li id="topcartlink" class="dropdown">
<a href="@Url.RouteUrl("ShoppingCart")" class="ico-cart dropdown-toggle" data-toggle="dropdown">
<span class="cart-label">@T("ShoppingCart")</span>
<span class="cart-qty">@T("ShoppingCart.HeaderQuantity", Model.ShoppingCartItems)</span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
@Html.Action("FlyoutShoppingCart", "ShoppingCart")
</ul>
</li>
}
@if (Model.WishlistEnabled)
{
<li>enter code here
<a href="@Url.RouteUrl("Wishlist")" class="ico-wishlist">`enter code here`
<span class="cart-label">@T("Wishlist")</span>
<span class="wishlist-qty">@T("Wishlist.HeaderQuantity", Model.WishlistItems)</span>
</a>
</li>
}
@Html.Widget("header_links_after")
</ul>
</div>
</div>
請檢查圖像鏈接如下
http://imageupper.com/i/?S0200010090013K14096405471629783 http://imageupper.com/i/?S0200010090023K14096405471629783tw
另外,你可以在這裏找到另一個解決方案:http://www.jeffmould.com/2014/01/09/responsive-multi-level-bootstrap-menu/ – Milo 2014-09-24 16:19:04