bootstrap 4 单击时删除下划线

jmv*_*jmv 3 html css twitter-bootstrap

我在删除单击导航栏中的菜单时出现的下划线时遇到问题,这是我使用的代码。但它不起作用!

a.nav-link, a.nav-link:hover, a.nav-link:active, a.nav-link:visited, a.nav-link:focus {
    text-decoration:none;
}
Run Code Online (Sandbox Code Playgroud)

仍然没有运气。

我正在使用引导程序 4 alpha

小智 6

您可以删除所有标签中的下划线

 a, a:hover,a:visited, a:focus {
    text-decoration:none;
}
Run Code Online (Sandbox Code Playgroud)