jQuery 中的 Tooltip组件函数

首页 / jQuery入门教程 / jQuery 中的 Tooltip组件函数

小部件工具提示功能可与JqueryUI中的小部件一起使用。Tooltip用于显示提示。

Tooltip - 语法

$( document ).tooltip();

Tooltip - 示例

以下是显示工具提示用法的简单示例-

无涯教程网

<!doctype html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <title>jQuery UI Tooltip - Default functionality</title>
		
      <link rel="stylesheet" 
         href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
			
      <script src="//code.jquery.com/jquery-1.10.2.js">
      </script>
      <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js">
      </script>
		
      <script>
         $(function() {
            $( document ).tooltip();
         });
      </script>
		
      <style>
         label {
            display: inline-block;
            width: 15em;
         }
      </style>
   </head>

   <body>
      <p><a href="#" title="Tutorials point india Pvt ltd">
         Tutorials point</a> Free tutorials and reference manuals with
         examples for Concordion, 5G, JBPM5, SAP, Agile, SVG, Web Icons, KDB+,
         Web Analytics, Google Maps, Joomla, Self</p>
			
      <p><a href="https://www.learnfk.com/jquery/index.htm"
         title="J Query tutorials"> J Query</a> is a fast and 
         concise JavaScript library created by John Resig in 2006. 
         jQuery simplifies HTML document traversing, event handling,  
         animating, and Ajax interactions for Rapid Web Development.</p>
			
      <p><label for="age">your tutorials details</label>
         <input id="age" title="Please enter your tutorial name. 
         We will search in our data base"></p>
   </body>
</html>

这将产生以下输出-

链接:https://www.learnfk.comhttps://www.learnfk.com/jquery/widget-tooltip.html

来源:LearnFk无涯教程网

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

Service Mesh实践指南 -〔周晶〕

深入浅出区块链 -〔陈浩〕

邱岳的产品实战 -〔邱岳〕

Go语言从入门到实战 -〔蔡超〕

Electron开发实战 -〔邓耀龙〕

数据中台实战课 -〔郭忆〕

打造爆款短视频 -〔周维〕

朱涛 · Kotlin编程第一课 -〔朱涛〕

互联网人的数字化企业生存指南 -〔沈欣〕

好记忆不如烂笔头。留下您的足迹吧 :)