大佬教程收集整理的这篇文章主要介绍了css – 在bootstrap 3上的图像周围换行文本,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
如果您阅读并查看问题所在,您会发现它不是重复的……
这是我的代码的样子
<div class="row" data-sf-element="Row"> <div id="contentPlaceholder_C002_Col00" class="sf_colsIn col-md-6" data-sf-element="Column 1"> <div> <div> <h2>Contrary to popular belief,Lorem Ipsum is not simply r</h2> <p>Contrary to popular belief,Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC,making it over 2000 years old. Richard McClintock,a Latin professor at Hampden-Sydney College in Virginia,looked up one of the more obscure Latin words,consectetur,from a Lorem Ipsum passage,and going through the cites of the word in classical literature,discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero,written in 45 BC. This book is a treatise on the theory of ethics,very popular during th</p> <p>Contrary to popular belief,very popular during th</p> </div> </div> </div> <div id="contentPlaceholder_C002_Col01" class="col-md-6" data-sf-element="Column 2"> <img src="/images/default-source/careers/careers_1.jpg?sfvrsn=2" title="careers_1" alt="careers_1"> </div> </div>
您应该将图像和文本放在一列中,然后将其填满.然后将文本和图像包装在div中并将它们浮动到左侧.这一行(代码是一个例子,未经过测试):
<div class="col-md-12"> <div class="pull-left"><img src="YourImage.png"/></div> <div class="pull-left">Your text goes here......</div> </div>
您可能需要在图像上留出一些余量,以使文本不会贴近图像
以上是大佬教程为你收集整理的css – 在bootstrap 3上的图像周围换行文本全部内容,希望文章能够帮你解决css – 在bootstrap 3上的图像周围换行文本所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。