首页 > 代码库 > bootstrap 多元素共用 popover

bootstrap 多元素共用 popover

<div class="popover fade bottom in small" role="tooltip" id="gPopover" style="display: block;">
<div class="arrow"></div>
<h3 class="popover-title">房态修改记录</h3>
<div class="popover-content " ></div>
</div>

 

var _left = jq.offset().left - 70+ ‘px‘;
var _top = jq.offset().top + 50 + ‘px‘;
var pop = jq.attr(‘pop‘);
if(pop && pop!=‘undefined‘){
$("#gPopover .popover-content").html(pop);
$("#gPopover").css({ left: _left, top: _top });
$("#gPopover").show();
}

bootstrap 多元素共用 popover