我在悬停操作的表格单元格中有一个链接,我想要一个Bootstrap弹出窗口出现。截至目前,我无法让这个工作正常。Bootstrap表格单元格中的链接内的弹出窗口不显示
这里是代码片段:
<table style="background: transparent; border: 0; outline: 0; border-collapse: collapse;">
<tr style="background: transparent; border: 0; outline: 0;">
<td style="background: transparent; border: 0; outline: 0; text-align:left; width:100px">
<a href="#" id="lastBACommentCell" tabindex="0" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-template="<div class='mainViewPopover' role='tooltip'><div class='arrow'></div><div class='popover-content' style='color: #FFFFFF;'></div></div>" data-content="Here is my popover">
Hover here for the popover to appear...
</a>
</td>
</tr>
</table>
...
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$('#lastBACommentCell').popover();
});
</script>
我试图把一个<span>
内<a>
标签,但它仍然不会显示酥料饼。
这里是的jsfiddle - https://jsfiddle.net/dzeller44/swnbdjaq/
倘使你的提琴includ ed the libraries .... – epascarello
我的歉意 - 只是添加了CSS。 – Dan