本文實(shí)例講述了jQuery懸停文字提示框插件jquery.tooltipster.js用法。分享給大家供大家參考,具體如下:
運(yùn)行效果截圖如下:
index.html頁面:
<!DOCTYPE html><html lang="en"><head><title>jQuery Tooltips懸停文字提示框效果</title><meta charset="utf-8" /><link rel="stylesheet" type="text/css" href="css/tooltipster.css" /><link rel="stylesheet" type="text/css" href="css/style2.css" /><script type="text/javascript" src="js/jquery-2.0.0.min.js"></script><script type="text/javascript" src="js/jquery.tooltipster.js"></script><script type="text/javascript"> $(document).ready(function() { $('.tooltip').tooltipster(); });</script></head><body><br><br><br><br><br><br><br><br><section id="facebook"><ul><a href="http://www.companysz.com/" target="_blank"><span id="fackbook" class="tooltip" title="VeVB.COm">VeVB.COm</span></a></ul></section><section id="twitter"><ul> <a href="http://www.companysz.com/" target="_blank"><span id="twitter-default" class="tooltip" title="JS腳本代碼">JS腳本代碼</span></a></ul></section><section id="google"><ul> <a href="http://www.companysz.com/" target="_blank"><span id="google-default" class="tooltip" title="jQuery">jQuery</span></a></ul></section><section id="rss"><ul> <a href="http://www.companysz.com/" target="_blank"><span id="rss-default" class="tooltip" title="JS腳本代碼">JS腳本代碼</span></a></ul></section><section id="tech"><ul> <a href="http://www.companysz.com/"><span id="tech-default" class="tooltip" title="CSS3">CSS3</span></a></ul></section></center><section id="dribbble"><ul> <a href="http://www.companysz.com/" target="_blank"><span id="dribbble-default" class="tooltip" title="HTML5">HTML5</span></a></ul></section><br><br><br><br><br></body></html>
完整實(shí)例代碼點(diǎn)擊此處本站下載。
更多關(guān)于jQuery相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《jQuery擴(kuò)展技巧總結(jié)》、《jQuery常用插件及用法總結(jié)》、《jQuery拖拽特效與技巧總結(jié)》、《jQuery表格(table)操作技巧匯總》、《jquery中Ajax用法總結(jié)》、《jQuery常見經(jīng)典特效匯總》、《jQuery動(dòng)畫與特效用法總結(jié)》及《jquery選擇器用法總結(jié)》
希望本文所述對(duì)大家jQuery程序設(shè)計(jì)有所幫助。
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注