我试图显示一个简单的图像,当用户悬停在链接上,即时跟随example found here字母,但我没有得到任何图像显示。引导悬停图像显示示例
我有以下UI,当用户点击查看车队数据被异步返回,并且该示例代码放置在脚本中返回的数据,从而:
用户点击查看舰队
CODE
$('a[rel=popover]').popover({
html: true,
trigger: 'hover',
placement: 'bottom',
content: function(){return '<img src="'+$(this).data('img') + '" />';}
});
ViewFleet.php
<td> <a class="btn" rel="popover" data-img="//placehold.it/400x200"> <?php echo $row['model'] ?></a></td>
以上任何帮助或建议非常赞赏。
包括工具提示插件吗? – monkeyinsight
@monkeyinsight我没有...让我快速检查 –
@monkeyinsight对不起,如果我在这里很愚蠢,但我不能看到工具提示插件... –