加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Bootstrap popover 实现鼠标移入移除显示隐藏功能方法

发布时间:2020-12-18 00:33:07 所属栏目:安全 来源:网络整理
导读:该段js代码可实现 popover 下鼠标移入移除时显示、隐藏 popover 提示信息功能 '+ ' '+ ' 张三 '+ ' '+ ' ';$( 'li#user_avatar' ).popover({ trigger:'manual',placement:'bottom',html:true,container:'#bs-example-navbar-collapse-1',content:strContent,

该段js代码可实现 popover 下鼠标移入移除时显示、隐藏 popover 提示信息功能

'+ '
'+ '

张三

'+ '
'+ '
'; $( 'li#user_avatar' ).popover({ trigger:'manual',placement:'bottom',html:true,container:'#bs-example-navbar-collapse-1',content:strContent,}).on( 'mouseenter',function(){ var _this = this; $(this).popover( 'show' ); $(this).siblings( '.popover' ).on( 'mouseleave',function () { $(_this).popover( 'hide' ); }); }).on( 'mouseleave',function(){ var _this = this; setTimeout(function () { if (!$( '.popover:hover' ).length) { $(_this).popover( 'hide' ) } },100); });

以上这篇Bootstrap popover 实现鼠标移入移除显示隐藏功能方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持编程之家。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读