成都创新互联网站制作重庆分公司

bootstrap设置鼠标悬停提示的方法

这篇文章主要介绍bootstrap设置鼠标悬停提示的方法,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

成都创新互联公司长期为超过千家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为淮滨企业提供专业的成都网站建设、做网站淮滨网站改版等技术服务。拥有十载丰富建站经验和众多成功案例,为您定制开发。

1、   

2、

$(function () { $("[data-toggle='popover']").popover(); });    
    $("[rel=drevil]").popover({
                      trigger:'manual',
                      //placement : 'bottom', //placement of the popover. also can use top, bottom, 
                      left or right
                      //天title : '
Muah ha ha
', //this is the top title bar of the popover. add some basic css html: 'true', //needed to show html of course //content : '
', //this is the content of the html box. add the image here or anything you want really. animation: false }).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") } }, 300); });

以上是bootstrap设置鼠标悬停提示的方法的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联行业资讯频道!


分享文章:bootstrap设置鼠标悬停提示的方法
标题来源:http://cxhlcq.com/article/ggdiop.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部