使用 Bootstrap 弹出框,弹出框不会出现在悬停时。它仅在我单击链接时出现。我很感激任何帮助。TIA
<script type="text/javascript">
$(function () {
$('body').popover({
html: true,
content: function () {
return $(this).next().html();
},
selector: '.has-popover'
})
});
</script>
<body>
<form id="form1" runat="server">
<div id="div1" style="margin: 80px 0 0 20px;" runat="server">
<a id="A1" style="text-decoration-style: dashed; text-decoration: dashed;" class="has-popover" href="#" rel="popover" data-placement="right" data-original-title="Title Goes Here!" data-trigger="hover">Hover for popover</a>
<div id="Div3" style="display: none">
<div style="float: left; width: 15%;">
<img style="max-height: 75px; max-width: 75px;" src="style/x.png" />
</div>
<div style="float: left; width: 85%;">
<ul>
<li>blah blah blah</li>
<li>yada yada yada</li>
<li>blah blah blah</li>
</ul>
</div>
</div>
</div>
</form>