bootstrap tooltip fadeout? [英] bootstrap tooltip fadeout?
本文介绍了bootstrap tooltip fadeout?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
基本上我有一个twitter bootstrap工具提示,只要鼠标悬停在div上就会保留在div上。有没有办法让这种淡出一段时间,即使鼠标仍在盘旋。我已经使用了动画,但只能使用淡入淡出。
basically i have a twitter bootstrap tooltip that will stay on the div as long as the mouse is hovered over it. is there a way to make this fade out of a period of time even with the mouse still hovered. i have used animation but that only works fading in.
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap.js"></script>
<script>
$(function ()
{ $(".exampleDiv").tooltip({
'delay': { show: 1050, hide: 300 }
});
});
</script>
推荐答案
( function ( )
{
(function () {
( .exampleDiv ).tooltip({
' delay':{show: 1050 ,隐藏: 300 }
});
});
< / script>
(".exampleDiv").tooltip({ 'delay': { show: 1050, hide: 300 } }); }); </script>
这篇关于bootstrap tooltip fadeout?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文