2016-11-13 36 views
0

我使用引導彈出窗口。引導彈出窗口中的圖像不包含在框架中

<script> 
$(document).ready(function(){ 
    $('a[rel=popover]').popover({ 
    html: true, 
     trigger: 'hover', 
     placement: 'right', 
     content: function(){return '<img src="'+$(this).data('img') + '" />';} 
}); 
}); 
</script> 

但是大圖像不包含在一個框架中,如下圖所示。

我該如何解決這個問題?

enter image description here

+0

在您的CSS .popover {width:%framewidth%px; }並確保使用相同的值調整最大寬度 – Stavm

+0

我已經嘗試過但沒有工作。 – shin

回答

0

好吧,我發現我需要改變最大寬度。

.popover{ 
    max-width: 500px; 
}