jQuery选择器,用于在td元素上显示flowplayer工具提示

时间:2010-11-04 21:30:04

标签: jquery jquery-plugins flowplayer

我正在尝试使用flowplayer工具提示工具(http://flowplayer.org/tools/demos/tooltip/table.html)来显示特定元素的工具提示。

这是我的HTML:

<table id="menu-table" cellspacing="0" cellpadding="0" width="714" border="0" style="padding-top: 4px;">
 <tr>

  <td title="menu-one" style="background: url('images/menu-button.gif') top left no-repeat; text-align: center; vertical-align: middle; height:35px; width:115px; padding-right: 6px;">

   <a href="about.php">About</a>
   <div id="tooltip" class="tooltip">Tooltip text.</div>
  </td>
 </tr>
</table>

请注意,上面的工具提示div部分的样式为display:none。

这是我正在尝试使用的选择器......

$("#menu-table td[menu-one]").tooltip();

tooltip()应该显示隐藏的div,但我确定我选择了错误。

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

$("#menu-table td[title='menu-one']").tooltip();

选择带有参数标题且值为'menu-one'的TD

相关问题