![](/img/trans.png)
[英]Why can't I override the bootstrap class of "nav-link" and change the color of the link text?
[英]How can I change hover in this nav-link Bootstrap which contains span and I (icon Bootstrap)?
<li class="nav-item mt-3">
<a href="#" class="nav-link px-2 d-flex justify-content-start align-items-center">
<i class="nav-icon bi bi-calculator-fill fs-4"></i>
<span class="ms-2 fs-5">Comptabilité</span>
</a>
</li>
#sidebarMenu .nav-icon:hover span:hover{
border-left: 4px solid #007bff;
color: #269BF5;
}
如何在這個包含 span 和 I(圖標 Bootstrap)的導航鏈接引導程序中更改 hover?
.nav-item:hover{
border-left: 4px solid #007bff;
color: #269BF5;}
只需使用它,或者您可以添加您的自定義 class。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.