[英]how to make the jquery show method appear from the right side than the left side
[英]how to make cluetips jquery show right side of <table>
我有一个表,可从ajax查询中加载一些数据。
我试图在上面做一个提示(局部,带箭头)。
这是我的提示选项:
$('.load-local').cluetip({
sticky: true,
arrows: true,
showTitle: false,
mouseOutClose: true,
delayedClose: 400,
local: true,
hideLocal: true,
width: 170
});
我将其放在某个<td>
(在“详细信息”部分下)。
这样,当用户将鼠标悬停在其<td>
,提示会如我所愿显示在右侧。
我附上了预览:
然后,我决定将其修改为对用户更有效。
因此,如果用户将鼠标悬停在<tr>
,则会显示提示。
但是,当我在此<tr>
上放置cluetip class和rel属性时,该cluetip显示在左侧。
我附上了预览:
我想要:当用户将鼠标悬停在<tr>
,提示将显示在右侧(就像我在<td>
上所做的一样)。
我该怎么做?
我已经尝试使用jquery在将mouseover
在<tr>
时触发<td>
<tr>
,但是仍然失败。
你有什么想法吗?
非常感谢你..
你完成了吗..
$('.load-local td').cluetip({
sticky: true,
arrows: true,
showTitle: false,
mouseOutClose: true,
delayedClose: 400,
local: true,
hideLocal: true,
width: 170
});
尝试选择tr的子td元素。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.