gpt4 book ai didi

javascript - 如何将样式添加到我的工具提示功能中?

转载 作者:行者123 更新时间:2023-11-28 12:13:56 25 4
gpt4 key购买 nike

我有这个代码。

tooltip: function() {
$(".form-item-label.info")
.append("<p title='' class='icon-info-sign info'></p>")
.tooltip({
tooltipClass: "tool",
show: null,
position: {
my: "right bottom",
at: "right top",
using: function(position, feedback) {
$(this).css({top: position.top+80, left: position.left-30});
$("<div>")
.addClass("tooltip-arrow")
.appendTo(this);
}
},
content: function() {
var msg = "<p>Some text</p>";
return msg;
}
});
});

如何在工具提示功能中添加样式?不是来自样式,而是来自 tooltipClass:"tool", show: null, position...content... STYLE: ?

最佳答案

没有办法用默认的工具提示代码来做到这一点。

你必须修改库,你可以派生 tooltip.js 并将样式/类属性应用于工具提示元素。

关于javascript - 如何将样式添加到我的工具提示功能中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19313926/

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