문제

I want to have a tooltip display an image. I tried the methods described here, but nothing worked. I've also tried other jQuery UI widgets, and they do work. Here is my code:

HTML:

<a id='gamercard' href='https://live.xbox.com/en-US/Profile?Gamertag=Daddy+Kiefer' title=''>Daddy Kiefer</a>.</p>

js:

$(function () {

   $("#gamercard").tooltip({
       content: '<img src="http://gamercard.zaamit.com/nxe/Daddy%20Kiefer.png" />'
   });
});

Any advice on where I'm going wrong would be appreciated.

도움이 되었습니까?

해결책

Works for me with exact same code above:

http://jsfiddle.net/fiddleyetu/wu23h/show/

$(function () {

   $("#gamercard").tooltip({
       content: '<img src="http://gamercard.zaamit.com/nxe/Daddy%20Kiefer.png" />'
   });
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top