使用bootstrap 3,继承导航栏中的snippit。两者都是跨度所以应该是内联的吗?
<a href="#">
<span><img src="images/brand/pgblocks-logo-white-nostrap.png" class="brand-img img-responsive"></span>
<span><h3>test test</h3></span>
</a>
答案 0 :(得分:1)
试试这个
<nav class="navbar navbar-default">
<div class="navbar-header">
<a class="navbar-brand" href="#">
<span><img src="#"/></span>
Logo Title
</a>
</div>
</nav>
答案 1 :(得分:0)
试试这个:)
span img {
float:left;
}
<a href="#">
<span><img src="https://www.ucl.ac.uk/prospective-students/graduate/images/test/placeholder-200x200"></span>
<span><h3>test test</h3></span>
</a>
答案 2 :(得分:0)
因为images = []
stories = Story.query.filter(Story.user == user.key)
stories = stories.fetch(size)
for story in stories:
images.extend(ndb.get_multi(story.images))
print images
是一个块元素。
h3