2017-08-17 74 views
-2

我现在将css类作为“品牌”现在我需要在品牌类中更改缩略图div的大小我该怎么做?如何在引导程序中更改div大小

<div class="brands"> 
    <div class="row"> 
     <?php foreach ($item['brands'] as $key => $value): ?> 
      <div class="col-md-3"> 
       <div class="thumbnail"> 
        <img src="<?php echo base_url(); ?>assets/img/logos/<?php echo sprintf("%s-logo.jpg", $value); ?>" alt="<?php echo sprintf('%s Logo Image', ucwords($value)); ?>" /> 
       </div> 
      </div> 
     <?php endforeach; ?> 
    </div> 
</div> 

回答

0

这将覆盖仅.thumbnails .brands类的内部元件

.brands .thumbnail { 
    width: yourWidth; 
    height: youtHeight; 
} 
+0

好吧,现在我需要改变品牌大小的div尺寸,我该怎么做? – Lion

+0

认真吗?在你问一个关于CSS的东西之前,请问...... – Greg

+0

认真你甚至知道CSS? –

0

可以在CSS文件添加以下代码:

.thumbnail {宽度:100%;}

相关问题