我在我的WordPress主题中使用Tooltipster jQuery插件,但是当我想将它与HTML内容一起使用时,它没有显示出什么结果是我的问题?
我在main-function.js文件中写了这些
jQuery(function($){
$(document).ready(function() {
$('.tooltip').tooltipster(
content: $('<span><strong>This text is in bold case !</strong></span>')
);
});
});
HTML
<span class="tooltip">Sightly Newer</span>
此插件运行良好但不适用于HTML内容。