Tooltip
优质
小牛编辑
135浏览
2023-12-01
描述 (Description)
Widget Tooltip函数可以与JqueryUI中的小部件一起使用.Tooltip用于显示提示。工具提示的示例示例如下所示。
语法 (Syntax)
以下是使用Tooltip的简单语法 -
$( document ).tooltip();
例子 (Example)
以下是一个显示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 = "xnip india Pvt ltd">
xnip</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.xnip.cn/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>