gpt4 book ai didi

jquery - qtip 气泡造型

转载 作者:行者123 更新时间:2023-12-01 00:49:44 27 4
gpt4 key购买 nike

我刚刚选择了 JQuery 的 qtip2 插件,但似乎无法根据他们的示例使样式正常工作。也许我不明白什么?

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

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

我的JQuery代码如下:

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

最佳答案

这种工具提示样式设置方式适用于 original version qtip 现已被更新版本取代。 qtip2使用更好的基于类的样式方法。

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

您肯定想使用qtip2。它比 qtip1 有了很大改进。

关于jquery - qtip 气泡造型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5999834/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com