繼page之後,使用圖片徽標代替導航品牌的文字,我遇到了這個問題,肖像標誌被任何內容/文字/圖片/ carousal切斷。Bootstrap導航欄品牌標誌 - 肖像圖像已被切斷?
我該如何解決?
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<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="#">
<img src="http://placehold.it/150x200&text=Logo" alt="">
</a>
</div>
結果:
增加.navbar-header的高度。 –
我需要更多關於照片的細節。你能發佈完整的HTML和CSS嗎? –