我目前正在使用twitter bootstrap 3,我面临着创建响应式图像的问题.我用过img-responsive课.但图像尺寸没有扩大.如果我使用width:100%而不是max-width:100%那么它完美地工作.问题出在哪儿?这是我的代码:
<div class="col-md-4 col-sm-4 col-xs-12 ">
<div class="product">
<div class="product-img ">
<img class="img-responsive" src="img/show1.png" alt="" />
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)