日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

EasyUI中ToolTip提示框的简单使用

發(fā)布時間:2025/3/19 编程问答 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 EasyUI中ToolTip提示框的简单使用 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

場景

效果

屬性

名稱類型描述默認(rèn)值
positionstring提示框(tooltip)位置。可能的值:'left'、'right'、'top'、'bottom'。bottom
contentstring提示框(tooltip)內(nèi)容。null
trackMouseboolean如果設(shè)置為 true,提示框(tooltip)會隨著鼠標(biāo)移動。false
deltaXnumber提示框(tooltip)位置的水平距離。0
deltaYnumber提示框(tooltip)位置的垂直距離。0
showEventstring引發(fā)提示框(tooltip)出現(xiàn)的事件。mouseenter
hideEventstring引發(fā)提示框(tooltip)消失的事件。mouseleave
showDelaynumber顯示提示框(tooltip)的時間延遲。200
hideDelaynumber隱藏提示框(tooltip)的時間延遲。100

事件

名稱參數(shù)描述
onShowe當(dāng)顯示提示框(tooltip)時觸發(fā)。
onHidee當(dāng)隱藏提示框(tooltip)時觸發(fā)。
onUpdatecontent當(dāng)提示框(tooltip)內(nèi)容更新時觸發(fā)。
onPositionleft,top當(dāng)提示框(tooltip)位置改變時觸發(fā)。
onDestroynone當(dāng)提示框(tooltip)銷毀時觸發(fā)。

方法

名稱參數(shù)描述
optionsnone返回選項(options)屬性(property)。
tipnone返回提示(tip)對象。
arrownone返回箭頭(arrow)對象。
showe顯示提示框(tooltip)。
hidee隱藏提示框(tooltip)。
updatecontent更新提示框(tooltip)內(nèi)容。
repositionnone重置提示框(tooltip)位置。
destroynone銷毀提示框(tooltip)。


實現(xiàn)

<!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"><title>Title</title><link rel="stylesheet" type="text/css" href="/easyui/themes/icon.css"><link rel="stylesheet" type="text/css" href="/easyui/themes/default/easyui.css"><script type="text/javascript" src="/easyui/jquery.min.js"></script><script type="text/javascript" src="/easyui/jquery.easyui.min.js"></script> </head> <body> <a href="#" title="This is the tooltip message." class="easyui-tooltip">Hover me</a> <a id="dd" href="javascript:void(0)">Click here</a> <script type="text/javascript">$('#dd').tooltip({position: 'right',content: '<span style="color:#fff">This is the tooltip message.</span>',onShow: function(){$(this).tooltip('tip').css({backgroundColor: '#666',borderColor: '#666'});}}); </script> </body> </html>

?

總結(jié)

以上是生活随笔為你收集整理的EasyUI中ToolTip提示框的简单使用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。