使用Qtip进行淘汰工具提示
我需要为表格中的特定列提供工具提示。 我的看法:
Type Title
我已经包含了jquery和jquery.qtip.js。
我写了一个函数来显示鼠标输入的工具提示。
$('#qtipselector_01').qtip({ content: $('div#TooltipContent_01').html(), position: { my: 'left center' }, show: 'mouseenter', hide: { fixed: true, delay: 500, when: { event: 'unfocus' } }, style: { tip: { width: 20, height: 14, }, width:280, height:100, classes: 'qtipabc', } });
主页
它现在不起作用。
$(document).ready(function(){ $('#qtipselector_01').qtip({ content: $('div#TooltipContent_01').html(), position: { my: 'left center' }, show: 'mouseenter', hide: { fixed: true, delay: 500, when: { event: 'unfocus' } }, style: { tip: { width: 20, height: 14 }, width:280, height:100, classes: 'qtipabc' } }); });
您应该将qTip代码放在$(document).ready块中。 此外,你还有一些可以干扰的额外逗号