强制引导响应图像为方形 [英] Force bootstrap responsive image to be square
问题描述
图像是在循环中创建的:
<div class="col-sm-6"><div id="行"><?phpforeach ($products as $product){?><div class="col-sm-6"><a href="/admin/product/" class="thumbnail"><div class="caption">标题
10 次查看<img src="/assets/img/product/<?php echo $product['img'] ?>"class="img img-responsive full-width"/></a>
<?php}?>