我遇到了一些问题。尽管尝试使用Bootstrap和W3.CSS,我决定创建一个w3导航栏。引导程序3与W3.CSS导航栏冲突
<link href="https://www.w3schools.com/w3css/4/w3.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="rsc/bootswatch-cosmo.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<div class="w3-top">
<div class="w3-bar w3-black w3-hide-small w3-hide-medium">
<a href="#" class="w3-bar-item w3-btn w3-border-black w3-bottombar w3-hover-border-white" style="text-decoration: none;"><i class="fa fa-vcard fa-fw" ></i> SAMPLE</a>
<a href="#" class="w3-bar-item w3-btn w3-border-black w3-bottombar w3-hover-border-white" style="text-decoration: none;"><i class="fa fa-star fa-fw"></i> SAMPLE</a>
<a href="#" class="w3-bar-item w3-btn w3-border-black w3-bottombar w3-hover-border-white" style="text-decoration: none;"><i class="fa fa-image fa-fw"></i> SAMPLE</a>
<a href="#" class="w3-bar-item w3-btn w3-border-black w3-bottombar w3-hover-border-white w3-right" style="text-decoration: none;"><i class="fa fa-user-circle fa-fw"></i> SAMPLE</a>
</div>
</div>
It's寻找真棒不引导,但是当我添加引导程序库中的导航栏元素的文本变成蓝色。
有没有办法解决这个问题?如上所示,我甚至将style="text-decoration: none;"
添加到所有导航栏元素中以移除蓝色,但它不会消失。 在此先感谢所有有帮助的答案, - SearchingSolutions
谢谢!我选择使用您首先提到的解决方案,将样式添加到标题中。 – SearchingSolutions