gpt4 book ai didi

html - 删除按钮上的 Bootstrap 导航栏悬停效果

转载 作者:太空宇宙 更新时间:2023-11-04 13:51:53 25 4
gpt4 key购买 nike

我想从导航栏中的按钮中删除悬停效果,我该怎么做?[在此处输入图片描述][1]

<nav class="navbar navbar transparent">
<div class="container-fluid logo ">
<div class="navbar-header ">
<a class="navbar-brand " href="#">
<img src="images/Logo.png" />
</a>
</div>
<ul class="nav navbar-nav navbar-right right">
<li>
<a href="#">Get free trial</a>
</li>
<li class="Buybtn-topright">
<a href="#">Buy now</a>
</li>
</ul>
</div>
</nav>

最佳答案

添加这个CSS

.nav>li>a:focus, .nav>li>a:hover {
text-decoration: none;
background-color: transparent !important;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<nav class="navbar navbar transparent">
<div class="container-fluid logo ">
<div class="navbar-header ">
<a class="navbar-brand " href="#">
<img src="images/Logo.png" />
</a>
</div>
<ul class="nav navbar-nav navbar-right right">
<li>
<a href="#">Get free trial</a>
</li>
<li class="Buybtn-topright">
<a href="#">Buy now</a>
</li>
</ul>
</div>
</nav>

关于html - 删除按钮上的 Bootstrap 导航栏悬停效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37978404/

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