我如何使它所以項目(菜單,關於我們等)在整個導航欄都被均勻地隔開,而不是揉成一邊?太多空間
https://jsfiddle.net/dd19sg5x/
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<nav class="navbar navbar-default">
<div>
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-nav-demo" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar">a</span>
<span class="icon-bar">b</span>
<span class="icon-bar">c</span>
</button>
<img src="images\logo.png" href="main_page.html" width=75% height=75% alt="Company Logo of Broadstairs Hotel" href="www.google.com"/>
</div>
<div class="collapse navbar-collapse container" id="bs-nav-demo">
<ul class="nav navbar-nav" id="top-navbar">
<li><a href="html\book.html">Book</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">Enquire</a></li>
<li><a href="#">Facillities</a></li>
<li><a href="#">Rooms</a></li>
<li><a href="#">Contact us</a></li>
<!-- Navbar stuff is done -->
</div>
</div>
</nav>
這確實運作良好,但有現在列表上方有大量空間。我如何使它全部進入一條線? http://prntscr.com/f2vmqb –
我猜想 - 這是我所能做的,直到我看到的代碼 - 標誌或包裝中有[顯示屬性](https://css-tricks.com/almanac/properties/d/display /)'block'。它應該是一個內聯塊。我強烈建議您閱讀您的CSS基礎知識。嘗試[Mozilla開發者網絡](https://developer.mozilla.org/) – confusius