我想在navbar品牌的顶部导航栏中添加一个徽标。我希望它可以用视口大小进行缩放,因此我使用img-responsive2类。Bootstrap - 如何将徽标添加到navbar类?
似乎navbar品牌的图像和文本都包装到下一行。
此页面可以提前http://digitalponddesign.com/dev/
感谢您帮助查看。
这里是我的代码:
的Html
<h2 class="navbar-brand brand-name">
<a href="index.html"><img class="img-responsive2"
src="images/DigitalPondlogo.png">DigitalPond</a>
</h2>
CSS
.navbar {
margin: 10px 0;
}
.navbar-default {
background-color: #fff;
border-color: #fff;
}
.brand-name {
font-family: 'Josefin Slab', serif;
font-size: 47px;
font-weight: bold;
color: #444;
text-decoration: none;
}
.nav-container {
padding-top: 8px;
}
.navbar-custom {
font-size: 20px;
background-color: #FFF;
}
[Bootstrap 3 Navbar with Logo](http://stackoverflow.com/questions/18474564/bootstrap-3-navbar-with-logo) – leppie 2015-02-06 04:50:18