引导带有左、中或右对齐项的NavBar在……里面自举,创建一个导航栏的最友好的方式是:左边有Logo A,中间有菜单项,右边有Logo B?这是我到目前为止尝试过的,最后是对齐的,使得Logo A在左边,菜单项在左边的徽标旁边,Logo B在右边。<div class="navbar navbar-fixed-top navbar-custom ">
<div class="container" >
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><span class="navbar-logo">Logo_A</span></a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">Menu Item 1</a></li>
<li><a href="#contact">Menu Item 2</a></li>
<li><a href="#about">Menu Item 3</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><img src="images/Logo_B.png" class="img-responsive"></a></li>
</ul>
</div>
</div></div>
3 回答
- 3 回答
- 0 关注
- 1478 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消