开发者

jQuery tooltip offset

开发者 https://www.devze.com 2023-01-15 14:30 出处:网络
$(document).ready(function() { $(\"#demo img[title]\").tooltip({effect: \'slide\'}); }); I want to add an offset to this function, but whe开发者_Go百科n i add offset [20, 0], it doesn\'t work.I wou
$(document).ready(function() {
 $("#demo img[title]").tooltip({effect: 'slide'});
});

I want to add an offset to this function, but whe开发者_Go百科n i add offset [20, 0], it doesn't work. I would like to know how to code using 2 parameters.


$(document).ready(function() {
 $("#demo img[title]").tooltip({effect: 'slide', offset: [10, 2]});
});

this should just work fine. If you have a problem, post you code.

0

精彩评论

暂无评论...
验证码 换一张
取 消