Bootstrap 4 如何使用Bootstrap 4使图像正确地环绕文本?

Bootstrap 4 如何使用Bootstrap 4使图像正确地环绕文本?,bootstrap-4,Bootstrap 4,我试图得到一个图像的位置,以左边的文字,然后将包装类似的第一个图像我已附加 由于某种原因,图像与它下面的文本保持在同一列中,或者它看起来像我附加的第二个图像。 我正在学习Bootstrap4,因此某些定位在某些元素上无法正常工作。很抱歉没有正确放置代码I ctl+k,但它不起作用 有人能帮我解决这个问题吗 <div class="col-lg-12"> <hr> </div> </div> <div class="row"&g

我试图得到一个图像的位置,以左边的文字,然后将包装类似的第一个图像我已附加

由于某种原因,图像与它下面的文本保持在同一列中,或者它看起来像我附加的第二个图像。 我正在学习Bootstrap4,因此某些定位在某些元素上无法正常工作。很抱歉没有正确放置代码I ctl+k,但它不起作用

有人能帮我解决这个问题吗

  <div class="col-lg-12">
    <hr>
  </div>
</div>
<div class="row">
    <div class="col-12 col-lg-2">
        <img src="http://placehold.it/150x150" alt="" class="img-responsive float-left mr-3">
    </div>
    <div class="col-lg-10">
        <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
          ut labore et dolore
          magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex
          ea commodo
          consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
          nulla
          pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
          anim id est
          laborum. be repudiated and annoyances accepted. The wise man therefore always holds in these matters
          to this
          principle of
          selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid
          worse
          pains."</p>
      </div>

      <div class="col-lg-10">
        <p>
          "On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and
          demoralized by
          the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and
          trouble that
          are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of
          will, which is
          the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy
          to
          distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our
          being able
          to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain
          circumstances
          and owing to the claims of duty or the obligations of business it will frequently occur that
          pleasures have to
          be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this
          principle of
          selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid
          worse
          pains."
        </p>
        <p>
          3rd paragraph here. Get to talking
        </p>
      </div>


</div>`


“Lorem ipsum Door sit amet,是一位杰出的献身者,是一位临时顾问 劳埃德多洛酒店 大幅度的不平等,小幅度的不平等,小幅度的不平等,小幅度的不平等 电子商务 两人在一起的原因是,他们在一起的时候,会在一起 纳拉 除非是出于非故意,否则不应将其视为法定过失 动物识别码 拒绝劳动,接受烦恼。因此,智者在这些事情上总是坚持己见 对此 原则 选择:他拒绝快乐以获得其他更大的快乐,或者他忍受痛苦以避免 更糟的 痛苦。”

“另一方面,我们义愤填膺地谴责,不喜欢那些被如此欺骗和欺骗的人 士气低落 此刻的快乐魅力被欲望蒙蔽了双眼,以至于他们无法预见痛苦和痛苦 麻烦 而同样的责任也属于那些由于自身弱点而未能履行职责的人 威尔,那是 这和从劳累和痛苦中退缩是一样的。这些案例非常简单和容易 到 在一个自由的时间里,当我们的选择权不受限制,当没有任何东西阻止我们的行动时 能够 做我们最喜欢做的事,每一种快乐都要受到欢迎,每一种痛苦都要避免 情况 由于责任或业务义务的要求,经常会发生 快乐是必须的 因此,智者在这些事情上总是坚持这一点 原则 选择:他拒绝快乐以获得其他更大的快乐,或者他忍受痛苦以避免 更糟的 痛苦。”

这里是第三段。开始说话

`
如果你看你的大栏,它是col-lg-2,总共12个,比你的第一段col-lg-10,它结合了图像和文本12,这意味着你的页面的总宽度,现在下面的一个只有10个,所以它将显示你页面的83.33%,尝试改变col-lg-12,因此,它将匹配img+第一段

这是你如何使用它的简单方法

<div class="col-lg-2">
        <img src="http://placehold.it/150x150" alt="" class="img-responsive float-left mr-3">
</div>

<div class="col-lg-10">
        <p>Paragraph1</p>
</div>
<div class="col-lg-10">
        <p>Paragraph2</p>
</div>

第1段

第2段


如果你看你的大栏,它是col-lg-2,总共12个,比你的第一段col-lg-10,它结合了图像和文本12,这意味着你的页面的总宽度,现在下面的一个只有10个,所以它将显示你页面的83.33%,尝试改变col-lg-12,因此,它将匹配img+第一段

这是你如何使用它的简单方法

<div class="col-lg-2">
        <img src="http://placehold.it/150x150" alt="" class="img-responsive float-left mr-3">
</div>

<div class="col-lg-10">
        <p>Paragraph1</p>
</div>
<div class="col-lg-10">
        <p>Paragraph2</p>
</div>

第1段

第2段