更改窗口大小时Navbar Bootstrap错误

时间:2016-04-08 19:28:36

标签: twitter-bootstrap navbar

body{
	font-family: 'Oswald', sans-serif;
}
.navbar > .container-fluid{
	padding: 20px 40px;
}
.navbar-brand{
	margin-top: -8px;
}
.navbar-brand > small{
	font-weight: 100;
}
.navbar{
	background-color: transparent;
	border: none;
}
<!DOCTYPE html>
<html>
<head>
	<title>Portfolio</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap.min.css">
	
	<link rel="stylesheet" type="text/css" href="css/main.css">
	<link href='https://fonts.googleapis.com/css?family=Oswald:300,400' rel='stylesheet' type='text/css'>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#my-collapse-navbar" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Jos&eacute; Salazar<br></a>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="my-collapse-navbar">
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#">About</a></li>
        <li><a href="#">Portfolio</a></li>
        <li><a href="#">Contact me</a></li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
<script type="text/javascript" src="js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap/bootstrap.min.js"></script>
</body>
</html>

所以我得到了一个带引导程序的导航栏,它正常工作,直到我改变窗口的大小,看看它在移动设备上的外观。它好像是悬停和光标:来自bootstrap的指针停止工作一段时间。当我将窗口更改为正常时,会发生同样的情况。任何想法如何解决这个错误?

0 个答案:

没有答案