简体   繁体   中英

Bootstrap link disappears after clicking

I have a navbar:

<div class="navbar navbar-default navbar-fixed-bottom" role="navigation">
  <div class="container">
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav navbar-right">
        <li><a id="link-alert" href="#" target="_blank">something that works</a></li>
        <li><a href="#" target="_blank">something</a></li>
        <li><a href="#" target="_blank">something</a></li>
        <li><a href="#" target="_blank">something</a></li>
        <li><a href="#" target="_blank">something</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">projects <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li class="dropdown-header">my projects</li>
          </ul>
        </li>
        </ul>
      </div>
    </div>
  </div>

After clicking any of the following 'something' hrefs they disappear until I hover over them or clicking anywhere else on the page. How do I fix it?

Yes i agree with kimberlyvoo. Bootstrap.css is putting color for this. You have to override following with your desird color

 .navbar-default .navbar-nav > li > a:focus

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM