bootstrap如何实现鼠标悬停显示提示信息,下面web建站小编给大家详细介绍一下具体代码!
html代码:
<button type="button" rel="drevil" data-content="具体时间:'+time+'" data-container="body" data-toggle="popover" data-placement="bottom"></button>
js代码:
$(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 : '<div style="text-align:center; color:red; text-decoration:underline; font-size:14px;"> Muah ha ha</div>',
html: 'true', //needed to show html of course
//content : '<div id="popOverBox"></div>', //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 v4中文文档
上面是“bootstrap如何实现鼠标悬停显示提示信息”的全面内容,想了解更多关于 前端知识 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_3406.html
workflows工作流
汗血宝马ComfyUI工作流
沙漠里美丽的图阿雷格女孩ComfyUI工作流
一轮月亮悬挂在树上的天空中ComfyUI工作流
一条色彩斑斓的超现实小孔雀鱼ComfyUI工作流
沙漠里一只红黑相间的蝎子
奋斗的小黄人ComfyUI工作流
一只可爱的小鸟在飞翔ComfyUI工作流
泰坦尼克号桌面壁纸上ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

barcode条形码/qrcode二维码兼容所有浏览器(含ie6/ie7/ie8)
Bootstrap可视化拖放布局
如何利用css3+js做一个下雨效果
css3画弹珠,可以滚动!
html5如何3D立方体旋转特效
利用canvas画几个好玩的星云物种
如何利用svg做一个有趣的loading动画加载










