我正在研究一种显示工具提示并在鼠标悬停时保持其打开状态的方法。
使用 css3 相对容易,但我的挑战是 1) 它应该在 IE7 中工作,2) 我只有 jQuery 版本 1.3.2 可用。
到目前为止我有这个js:
$(function() {
$('.circle').hover(function() {
$(this).find('.tooltip').fadeIn(250);
}, function() {
$(this).find('.tooltip').fadeOut(250);
});
});
它看起来像 this ,但是如何保持工具提示打开,以便可以单击其中的链接?
最佳答案
好的,this似乎有效。稍微清理了 css,并删除了 pointer-events: none;
关于jQuery:如何在悬停时保持工具提示打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37457084/