Popover Boostrap4中的表

时间:2019-03-04 17:58:27

标签: javascript jquery html css bootstrap-4

我想在弹出窗口中插入<table>(详细说明什么是弹出窗口https://getbootstrap.com/docs/4.3/components/popovers/),但实际上不起作用,我也不知道为什么。完全相同的代码在Bootstrap 3上有效,但在版本4上无效。

    $(document).ready(function(){

    $("#popit").popover({
        html: true,
        container: 'body',
        placement : "bottom",
        content: function() {
           return $('#popover_content_wrapper').html();
        }
    });

});

这是我的代码。如您所见,我已经指定了html支持。 #popover_content_wrapper是包含<table>的div的ID。

任何人都可以帮忙吗?

编辑:

Div with the table in
Same div in popover but the table is missing

0 个答案:

没有答案