Bootstrap:好的图像

Fel*_*raf 1 html css twitter-bootstrap

在此输入图像描述

正如您在此屏幕截图中看到的,图像不在.well元素中.在这里你可以看到我的源代码:

<article class="well">
    <header>
        <h3>News mit Bild</h3>
        <p>
            <span class="glyphicon glyphicon-user"></span> Geschrieben von: <a href="#">TupidaMC</a><br/>
            <span class="glyphicon glyphicon-time"></span> Veröffentlicht am 13.11.2014 um 21:23
        </p>
    </header>
        <p class="news-content">... text ...</p>
        <img class="img-thumbnail news-pic" src="http://placekitten.com/g/350/251" />
        <p class="news-content">... text ...</p>
</article>
Run Code Online (Sandbox Code Playgroud)

CSS:

.news-pic{
     float: right;
}
Run Code Online (Sandbox Code Playgroud)

我想得到一些反响.

esv*_*sen 7

在文章标记中添加.clearfix类.

<article class="well clearfix">
Run Code Online (Sandbox Code Playgroud)

的jsfiddle

  • 我觉得这应该是公认的答案.如果您使用的是Bootstrap,请使用Bootstrap. (2认同)