我使用的是Bootstrap 3.我在頁面左側有一個文本,右側有一個圖像。我試圖讓文字環繞圖像。我已經看到了這個左對齊圖像的例子,但我似乎無法得到相反的工作。Bootstrap3 - 在右對齊圖像上的文字換行
要顯示的錯誤,我已經創建了一個example on JSFiddle。
有一個標題,然後一面旗幟,這應該是一半的網頁。他們的曲棍球運動員圖像應該在橫幅的右側,並且2張圖像的頂部應該對齊,文本應該立即在橫幅下開始,然後包裹在曲棍球運動員圖像下。像報紙版面一樣。
<div class="row">
<div class="col-xs-12 col-sm-7">
<h2>My Title</span></h2><!-- should be left aligned-->
<img src="/img/title_image.png" class="img-responsive"/><!--Should be left aligned-->
</div>
<div class="col-xs-12 col-sm-5 pull-right">
<h2> </h2>
<img src="/image_on_right_text_to_wrap_around.png" class="img-responsive"/>
</div>
<div class="col-xs-12">
<!-- This text should be under the title image and wrap underneath the larger image on the right-->
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed scelerisque leo leo, id congue massa blandit eget. Donec euismod a purus ut rhoncus. Integer commodo lectus nec bibendum eleifend. Pellentesque vestibulum tellus sed massa consequat lacinia. Integer ipsum lectus, pulvinar id arcu id, tristique luctus arcu. Maecenas non nibh sit amet risus tincidunt aliquam. Aenean ac auctor sem. Vestibulum ultrices finibus sapien sit amet condimentum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed scelerisque leo leo, id congue massa blandit eget. Donec euismod a purus ut rhoncus. Integer commodo lectus nec bibendum eleifend. Pellentesque vestibulum tellus sed massa consequat lacinia. Integer ipsum lectus, pulvinar id arcu id, tristique luctus arcu. Maecenas non nibh sit amet risus tincidunt aliquam. Aenean ac auctor sem. Vestibulum ultrices finibus sapien sit amet condimentum.
</p>
</div>
<div class="col-xs-12">
MORE TEXT HERE
您想在圖片文字? –
我在這裏添加了一個佈局示例:https://i.stack.imgur.com/cDXp3.png – MikeOak