qtip泡泡造型

rob*_*obx 3 jquery jquery-plugins qtip

我刚刚为JQuery选择了qtip2插件,似乎无法根据他们的示例使用该样式.也许我不理解什么?

这是他们加载6个默认可用主题的示例,但它不会改变任何内容,无论我使用的是奶油色,红色,深色,浅色,蓝色还是绿色.我只是不断获得默认的奶油主题.从qtip 1x开始,这些应该已经可以使用了吗?

$("jqueryselector").qtip({
   content: 'Dark themes are all the rage!',
   style: { 
      name: 'dark' // Inherit from preset style
   }
});
Run Code Online (Sandbox Code Playgroud)

我的代码在JQuery中如下:

$(function(){
    $('a['title']).qtip({style:{name:'red',tip:true}}); // picked up from the getting started page
});
Run Code Online (Sandbox Code Playgroud)

Geo*_*ord 6

造型工具提示的这种方式适用于原始版本qtip现在是由新版本所取代.qtip2使用更好的基于类的样式方法.

$('.selector').qtip({
   content: {
      text: 'I\'m blue... deal with it!'
   },
   style: {
      classes: 'ui-tooltip-blue ui-tooltip-shadow'
   }
});
Run Code Online (Sandbox Code Playgroud)

你肯定想用qtip2.它有很大改进qtip1.