gpt4 book ai didi

c# - 我如何将 ActionLink "Add Pictures"放在导航栏的中间?

转载 作者:行者123 更新时间:2023-11-28 19:21:24 25 4
gpt4 key购买 nike

我想在 NavBar 的中间放置 ActionLink“添加图片”

         <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>
@Html.ActionLink("PicWorld", "Index", "Home", new { area = "" }, new
{
@class = "navbar-brand",
style = "color: Red"
})
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>

</ul>
<ul class="nav navbar-nav" >
<li>@Html.ActionLink("Add Pictures", "AddPictures", "Pictures")</li>

</ul>
</div>

我想制作那条线 "<li>@Html.ActionLink("Add Pictures", "AddPictures", "Pictures")</li>位于导航栏的中间。

最佳答案

也许我不明白,但你为什么不把它放在你的“关于”和“联系”导航栏元素之间呢?

例如:

<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Add Pictures", "AddPictures", "Pictures")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
</ul>
</div>

关于c# - 我如何将 ActionLink "Add Pictures"放在导航栏的中间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57259976/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com