我正在測試bootstrap導航欄,以及我對樣式不太瞭解。當我點擊該圖標,一個虛線框出現在圖像邊界之外,如下:Bootstrap NavBar ccs3
我知道這是關係到頁面風格,但不知道如何解決。下面是我使用的確切代碼:
<!DOCTYPE html>
<html>
<head>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
</head>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">
<img alt="Brand" src="lib/img/mig.png">
</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
</button>
<h1 class="navbar-header" href="#">Home</h1>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-navbar-collapse-1">
<br>
<ul class="nav nav-pills navbar-right">
<li class="active">
<a href="#">Home</a>
</li>
<li class="">
<a href="#">About</a>
</li>
<li class="">
<a href="#">Contact</a>
</li>
<li class="">
<a href="#">Maps</a>
</li>
</ul>
</br>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<body>
</body>
</html>
是的,很多。 謝謝! – prmas