最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
當前位置: 首頁 - 科技 - 知識百科 - 正文

bootstrap如何設置鼠標懸停提示

來源:懂視網 責編:小采 時間:2020-11-27 15:01:48
文檔

bootstrap如何設置鼠標懸停提示

bootstrap如何設置鼠標懸停提示:1、 <button type="button" rel="drevil" data-content="報名截止時間:'+time+'" data-container="body" data-toggle="popover" da
推薦度:
導讀bootstrap如何設置鼠標懸停提示:1、 <button type="button" rel="drevil" data-content="報名截止時間:'+time+'" data-container="body" data-toggle="popover" da

1、     

<button type="button" rel="drevil" data-content="報名截止時間:'+time+'" data-container="body" data-toggle="popover" 
data-placement="bottom"></button>

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 : '<div style="text-align:center; color:red; text-decoration:underline; 
   font-size:14px;"> Muah ha ha</div>', //this is the top title bar of the popover. 
   add some basic css
   html: 'true', //needed to show html of course
   //content : '<div id="popOverBox"><img src="http://www.hd-report.com/wp-content
   /uploads/2008/08/mr-evil.jpg" width="251" height="201" /></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);
   });

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

bootstrap如何設置鼠標懸停提示

bootstrap如何設置鼠標懸停提示:1、 <button type="button" rel="drevil" data-content="報名截止時間:'+time+'" data-container="body" data-toggle="popover" da
推薦度:
標簽: 設置 顯示 提示
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top
国产精品久久久久精品…-国产精品可乐视频最新-亚洲欧美重口味在线-欧美va免费在线观看