作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有这个代码。
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/
我是一名优秀的程序员,十分优秀!