gpt4 book ai didi

javascript - 将 Themroller 与 qTip 2.0 一起使用

转载 作者:行者123 更新时间:2023-11-30 10:47:35 26 4
gpt4 key购买 nike

我正在使用 qTip 2.0在我的网站上,它说我可以使用 themeroller 来设计我的工具提示。然而,我对如何将 themeroller 与 qTip 一起使用感到有点困惑?它的页面上有教程,但 Themeroller 部分是空白的。

当我被困住时,任何人都可以帮助我解决这个问题。

这是我的 qTip 代码:

<script type="text/javascript">
var $j = jQuery.noConflict();
$j('.tool').qtip({
content: 'Tool Tip Text',
position: {
my: 'bottom left',
at: 'top left',
target: $j('.tool')
},
style: {
classes:
'ui-tooltip-tipsy' /*This is a style that comes with qTip 2.0 - I want to
replace with a themeroller style.*/
}
});
</script>

最佳答案

    style: {
classes: 'ui-tooltip-shadow', // Optional shadow...
tip: 'top center', // Tips work nicely with the styles too!

/*
* The important part: style.widget property

* This tells qTip to apply the ui-widget classes to
* the main, titlebar and content elements of the qTip.
* Otherwise they won't be applied and ThemeRoller styles
* won't effect this particular tooltip.
*/
widget: true
}

需要补充:)

关于javascript - 将 Themroller 与 qTip 2.0 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7355382/

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