【问题标题】:qtip (jquery plugin to show tooltips): trying to work with itqtip(用于显示工具提示的 jquery 插件):尝试使用它
【发布时间】:2010-10-14 20:01:20
【问题描述】:

我正在尝试操作qtip。我有这个代码

<html>
<head>

</head>

<body>

<script type="text/javascript" src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js'></script>

<script type="text/javascript" src='/home/javier/Scaricati/jquery-qtip-1.0.0-rc3080111/jquery.qtip-1.0.0-rc3.min.js'></script>

<script type="text/javascript">

$().ready(function() { $('div.foo').qtip({

}) ); 

</script>

<div title="jander" class="foo">hola</div>


</body>
</html>

当我转到 div 时,它只显示 HTML 工具提示(当然包含“jander”)。

我已检查 .js 是否已加载。

我还是 jquery 和工具提示的新手,所以欢迎任何想法。

问候

贾维

【问题讨论】:

    标签: jquery plugins tooltip


    【解决方案1】:

    尝试:

    $(function() { //shortcut for document ready
        $('div.foo').qtip({
            content: {
                text: false // Use each elements title attribute
            }
        });
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多