段落引导程序2.3.1旁边的图像

时间:2015-08-13 01:06:04

标签: html css twitter-bootstrap

您好,我有一个简单的HTML代码:

<div class="media">
  <a class="pull-left" href="#">
    <img class="media-object" src="image.jpg">
  </a>
  <div class="media-body">
   The long text that isn't continuing at the bottom of the image is here...
  </div>
</div>

输出是: enter image description here

现在我的问题是文本没有继续在图像下方,顺便说一句我使用bootstrap 2.3.1,因为那是我购买的模板的版本。如何移动图像下方的其他文字?

1 个答案:

答案 0 :(得分:1)

删除media-body

<div class="media">    
  <a class="pull-left" href="#">    
    <img class="media-object" src="image.jpg">
  </a>
  <div>
   The long text that isn't continuing at the bottom of the image is here...
  </div>
</div>

见效:http://www.bootply.com/d7HJMUoipg