我使用Tipsy工具时间插件,我注意到我不能使用与另一个链接的工具提示相同的方向。
示例:
javascript:
$('#south').tipsy({gravity: 's'});html:
<a id='south' href='#' title='This is an example of south direction'>South</a>
<a id='south' href='#' title='This is an example of south direction2'>South</a>解释示例:
Link1 - link2
当我悬停link1工具提示显示在顶部时,我也希望当我悬停link2工具提示显示在顶部时,
但不幸的是,它不适合我!
所以任何人都可以帮助我。
谢谢
发布于 2010-11-30 18:53:13
您不能像这样重复in,它们在页面中必须是唯一的(否则您会看到副作用,比如$('#south')只返回第一个match...your当前问题)。在这些情况下,请使用类,如下所示:
$('.south').tipsy({gravity: 's'});链接上也是如此;
<a class='south' href='#' title='This is an example of south direction'>South</a>
<a class='south' href='#' title='This is an example of south direction2'>South</a>https://stackoverflow.com/questions/4312872
复制相似问题