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>
    

     

    效果图:

  • 相关阅读:
    1新随笔
    MySQL--DML语言
    记一下Spring整合MyBatis踩的坑
    MyBatis(二)动态sql
    Mybatis动态代理注意事项
    几个练习指法和盲打的网站
    友链
    博客初心&心情小计
    博客园美化之标题显示
    博客园美化鼠标点击效果【富强民主文明和谐……】
  • 原文地址:https://www.cnblogs.com/emanlee/p/14118115.html
Copyright © 2011-2022 走看看