Navbar品牌名稱在一條線上運行良好,但當它打破兩條線以上時,品牌名稱從中殿區域出來。更長的品牌名稱在小屏幕上從導航欄外出
所以我想讓這個品牌名稱留在導航欄區域,或者將它隱藏在小屏幕尺寸。
請參考下面圖片鏈接....
Brand name getting outside from nav area
`<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<!--responsive menu button -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--menu name-->
<a class="navbar-brand" href="#">Taibunnesa Khanom Academy Degree College</a>
</div>
<!-- main menu items -->
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
<!--droopdown -->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>`
'.navbar-brand'有一個'50px'固定高度。 –
你想顯示全名還是隻想隱藏額外的文本? – Aslam
要顯示全名或隱藏完整品牌名稱 –