我在Bootstrap 3.0和MVC 5中编写以下代码。我正在努力让Submenus工作。我引用了navbar documentation,但我无法将结算和付款结构作为具有此结构的子下拉菜单:
Account Info
License Details
Billing and Payment
Invoices
Payments
Billing
Users
User Settings
这是我的HTML。我需要在结算付款上更换锚标记。我该怎么做呢?
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Free Trial Setup", "Trial", "Home")</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Account Info</a>
<ul class="dropdown-menu">
<li>@Html.ActionLink("License Details", "License", "Home" )</li>
<li class="dropdown-submenu"></li>
<a href="#">Billing and Payment</a>
<li>@Html.ActionLink("Invoices", "Invoices", "Home")</li>
<li>@Html.ActionLink("Payments", "Payments", "Home")</li>
<li>@Html.ActionLink("Billing Information", "Billing", "Home")</li>
</ul>
<li>User Settings</li>
</ul>
</li>
</ul>
@Html.Partial("_LoginPartial")
</div>
</div>
答案 0 :(得分:0)
根据snippet中提到的解决方案,您必须执行以下操作:
将以下内容添加到 Site.css 文件
2.15501
然后将 _Layout.cshtml 中的代码更改为:
CREATE function bsn_invalid(bsn INTEGER) RETURNS INTEGER
AS
$func$
DECLARE
val INTEGER;
mul INTEGER;
BEGIN
val := 11- (bsn % 10); -- the check digit
mul := 1;
while (bsn > 0) loop
bsn := (bsn / 10);
mul := mul + 1;
val := val + (bsn%10)*mul;
end loop;
if (mul < 9) then return 13; END IF; -- too short
return val % 11;
END
$func$ LANGUAGE plpgsql
;
-- test it::
SELECT bsn_invalid( 123456782);
SELECT bsn_invalid( 111222333 );
SELECT bsn_invalid( 23456784); -- assume a leading zero
SELECT bsn_invalid( 1234567); -- too short