第一次弹出窗口后,Bootstrap popover需要两次单击才能打开popover

时间:2018-02-18 08:19:09

标签: javascript jquery html css twitter-bootstrap

您好我使用过bootstrap popover。在这里,我的popover在第一次点击时效果很好。关闭弹出窗口后,如果我再次打开弹出窗口,则在第一次单击时不会打开。而是需要两次点击。 注意:在小提琴中一切正常。但是,在我的文件中,需要两次点击才能打开popover



$('[data-toggle="popover"]').popover();

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<h1><span data-toggle="popover" data-content="<a href='#' data-toggle='popover' onclick='$(&quot;.popover-close&quot;).popover(&quot;hide&quot;);return false;' class='close'>&times;</a><p><b>Enjoy Unfair Advantage Over Your Competitors</b></p><ol class='mrgn-lft-15'><li><p><b>Priority placement of Corporate Members' companies</b> in search results and product category pages significantly improves their visibility and let buyers find and contact Corporate Members when they search or browse [site name] for what Corporate Members sell. The improved visibility helps Corporate Members win <b>more inquiries</b> than their lower ranking competitors i.e. Diamond, Pro, and Basic Members.</p></li><li><p><b>Priority placement of Corporate Members’ quotations</b> sent to buyers ensures their quotations are seen at the top of all quotations received by buyers. This added visibility significantly improves the chances of Corporate Members’ quotations being viewed and responded to by buyers.</p></li></ol>"
    data-html="true" data-placement="right" data-container="body" class="label label-default popover-close">Details</span></h1>
&#13;
&#13;
&#13;

0 个答案:

没有答案