在引导程序中连续显示 3 个图像,下面是文本 [英] displaying 3 images in a row with text underneath in bootstrap
本文介绍了在引导程序中连续显示 3 个图像,下面是文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图连续显示 3 张带有标题的图像、标题下方的一些文本和一个按钮.我试过在引导程序中这样做只是为了让文本到处移动.这似乎是我可以让文本保持原样的唯一方法,但是现在您可以看到我的图像堆叠在一起而不是彼此相邻.任何帮助将不胜感激!
<div class="容器"><div class="row"><div class="text-center"><img alt="" class="resize-image" id="image1" src="/wp-content/themes/creativeforces/images/kid2.jpg"><p>教</p><img alt="" class="resize-image" id="image2" src="/wp-content/themes/creativeforces/images/kid2.jpg"><p>读取</p><img alt="" class="resize-image" id="image3" src="/wp-content/themes/creativeforces/images/kid2.jpg"><p>播放</p>
这是现在的样子
我试图让它看起来像这样
解决方案
您需要向行添加网格.这应该有效
<div class="容器"><div class="row"><div class="col-md-4"><img alt="" class="resize-image center-block" id="image1" src="/wp-content/themes/creativeforces/images/kid2.jpg"/><p class="text-center">教学</p></div><div class="col-md-4"><img alt="" class="resize-image center-block" id="image2" src="/wp-content/themes/creativeforces/images/Kid2.jpg"/><p class="text-center">阅读</p></div><div class="col-md-4"><img alt="" class="resize-image center-block" id="image3" src="/wp-content/themes/creativeforces/images/Kid2.jpg"/><p class="text-center">播放</p></div>
</section>