gpt4 book ai didi

c# - 如何将导航栏操作链接固定在右侧

转载 作者:行者123 更新时间:2023-11-27 23:41:37 26 4
gpt4 key购买 nike

<div class="navbar navbar-inverse navbar-fixed-top">
<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>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@Html.ActionLink("Moto Technic", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Anasayfa", "Index", "Home")</li>
<li>@Html.ActionLink("Motosikletler", "About", "Home")</li>
<li>@Html.ActionLink("En Son Eklenenler", "Contact", "Home")</li>
<li style="text-align:right; display:block">@Html.ActionLink("Giriş Yap", "Login","Home")</li>
<li style="">@Html.ActionLink("Üye Ol","Register","Home")</li>

</ul>
</div>
</div>
</div>

伙计们,我想将 Uye olGiris Yap 操作链接放在右侧,但文本对齐不起作用。你知道该怎么做吗?我正在使用 MVC,此时我不知道该做什么。无论我添加什么,它都会放在左侧,但是当我使用 text-align:right 文本样式时,它不起作用...

最佳答案

尝试将样式应用到

ul

而不是

li

关于c# - 如何将导航栏操作链接固定在右侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57012636/

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