2017-10-14 60 views
0

看起來很常見的用例,但我找不到答案。Bootstrap。在大屏幕上的Img響應溢出

HTML:

<div class="jumbotron my-jumbotron"> 
    <img class="img-responsive" src= 
    {{'https://static.pexels.com/photos/2232/vegetables-italian-pizza- 
    restaurant.jpg'}}> 
</div> 

在移動圖像縮放完美:

enter image description here

但大屏幕上也沒有:

enter image description here

+0

你能分享你的'css'嗎? – kravisingh

+0

@kravisingh沒有額外的CSS,只有Bootstrap 3 –

回答

0

我有限max-width爲中等和拉rger設備添加到CSS:

/********** Medium devices only **********/ 
@media (min-width: 992px) and (max-width: 1199px) { 
    .img-responsive { 
    max-width: 500px; 
    }