2014-08-29 72 views
0

具有像在引导3以下的模板:引导继承网/ CSS宽度选项从祖父母

<style> 
.chart{width: 9999px;} 
</style> 

<div class="container"> 
    <div class="well"> 
    <div class="row"> 
    <div class="chart"> 
     <div class="thumbnail col-md-3 col-md-3"></div> 
    </div> 
    </div> 
</div> 
</div> 

是有可能从.row类继承.thumbnail的尺寸(宽度),并跳过.chart.chart拥有财产与9999px,如下图:

enter image description here

回答

0

很难说,如果你需要更具体的解决方案,因为我没有确切的背景下这种情况,但你可以这样做:

.row .thumbnail {width: 500px;} 

这将覆盖.chart CSS所有thumbnail类是row阶层的孩子。

Bootply Demo

另外,你并不需要有相同的元素2 col-md-3类,第二col-md-3不会改变任何东西。