gpt4 book ai didi

bootstrap-4 - 背景和文本颜色导航栏 Blazor

转载 作者:行者123 更新时间:2023-12-04 01:27:35 25 4
gpt4 key购买 nike

我想更改 Blazor 中导航栏的背景颜色,但找不到方法。我想这不可能那么难。有人可以告诉我吗?

<div class="top-row pl-4 navbar navbar-dark bg-primary ">
<a class="navbar-brand bg-primary" href="">Test</a>
<button class="navbar-toggler bg-primary" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon bg-primary"></span>
</button>
</div>

<div class="@NavMenuCssClass" @onclick="ToggleNavMenu">
<ul class="nav flex-column">
<li class="nav-item px-3 bg-primary">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<span class="oi oi-home" aria-hidden="true"></span> Home
</NavLink>
</li>
<li class="nav-item px-3 bg-primary oi-resize-height">
<NavLink class="nav-link" href="hd">
<span class="oi oi-list-rich" aria-hidden="true"></span> hd
</NavLink>
</li>
</ul>
</div>

最佳答案

在“MainLayout.razor”中

<div style="background-image:none;background-color:cadetblue;" class="sidebar">
<NavMenu />
</div>

关于bootstrap-4 - 背景和文本颜色导航栏 Blazor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61610814/

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