zoukankan      html  css  js  c++  java
  • jQuery tooltip提示框的演示,鼠标悬停显示信息

    转自 https://blog.csdn.net/qq_39822451/article/details/83303186

    html源码:

    <!doctype html>
    <html>
    <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>
      <link rel="stylesheet" href="/resources/demos/style.css">
      <script>
      $(function() {
        $( document ).tooltip();
      });
      </script>
      <style>
      label {
        display: inline-block;
         5em;
      }
      </style>
    </head>
    <body>
     
    <p><a href="#" title="这就是Tooltips这个小工具">Tooltips</a> 很是强大</p>
    <p>但是
    <a href="http://jqueryui.com/themeroller/" title="ThemeRoller2: jQuery UI的主题创建应用">ThemeRoller</a>
    也挺厉害</p>
    <p>Tooltips 对表单元素很有用,可以在某些区域显示指定内容</p>
    <p><label for="age">Your age:</label><input id="age" title="输入年龄只做统计使用"></p>
    <p>鼠标悬停去看tooltip的效果.</p>
     
     
    </body>
    </html>
    

     

    效果图:

  • 相关阅读:
    移动端轮播插件
    一个简单的富文本编辑器
    animation css3
    渐变的写法
    js拖拽功能
    打子弹游戏 js
    css-vertical-centering
    css3的linear-gradient
    js模拟滚动条
    js日历
  • 原文地址:https://www.cnblogs.com/emanlee/p/14118115.html
Copyright © 2011-2022 走看看