大佬教程收集整理的这篇文章主要介绍了html – 使所有图像在引导程序中以相同的高度显示,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<div class="container" > <div class="jumbotron" style="BACkground: rgba(200,54,0.0);"> <div class="row"> <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12"> <a href="#"><img class="left-block img-responsive" src="images/genimage.png" width="160" height="160" alt="" /></a> <p style="width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; ">One Random Item</p> <p>50 €</p> </div> <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12"> <a href="#"><img class="left-block img-responsive" src="images/genimage.png" width="160" height="160" alt="" /></a> <p style="width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; ">Another Random Item</p> <p>50 €</p> </div> <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12"> <a href="#"><img class="left-block img-responsive" src="images/genimage2.jpg" height="160" width="160" alt="" /></a> <p style="width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; ">Another another Random Item</p> <p>50 €</p> </div> <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12"> <a href="#"><img class="left-block img-responsive" src="images/genimage.png" width="160" height="160" alt="" /></a> <p style="width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; ">Any other Random Item Any other Random Item </p> <p>50 €</p> </div> </div>
这是发生的事情:
这就是我想要的(所有都有相同的高度)
@H_489_12@.img-responsive { width: auto; height: 100px; }
您需要小心,水平留出足够的空间,因为一旦缩放,您将不知道任何这些图像的确切宽度.
@H_489_12@ @H_489_12@以上是大佬教程为你收集整理的html – 使所有图像在引导程序中以相同的高度显示全部内容,希望文章能够帮你解决html – 使所有图像在引导程序中以相同的高度显示所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。