【问题标题】:Image in bootstrap popover is not contained in a frame引导弹出窗口中的图像不包含在框架中
【发布时间】:2016-11-13 12:41:26
【问题描述】:

我使用引导弹出框。

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

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

我该如何解决这个问题?

【问题讨论】:

  • 在你的 CSS .popover { width: %framewidth%px;并确保使用相同的值调整最大宽度
  • 我已经尝试过了,但是没有用。

标签: twitter-bootstrap popover


【解决方案1】:

好的,我发现我需要更改 max-width。

.popover{
    max-width: 500px;
}

【讨论】:

    猜你喜欢
    • 2021-03-07
    • 2012-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-16
    • 2012-11-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多