[英]tooltip data to show on right top of tooltip icon
I have a requirement where i have multiple tables in a page and when i mouse over on one column it has to show tooltip at the top position with some data in it. 我有一个要求,即我在一个页面中有多个表,并且当我将鼠标悬停在某一列上时,它必须在顶部显示工具提示,并在其中显示一些数据。 Issue is tooltip is showing on the top of the page but at some random position.
问题是工具提示显示在页面顶部,但位置随机。 Please suggest.
请提出建议。 Thanks in advance.
提前致谢。
Try to change CSS to: 尝试将CSS更改为:
a.tooltip:hover span {
position: absolute;
bottom: 10px;
display: block;
width: 240px;
color: white;
border: 0px solid black;
padding: 5px;
}
See updated jsFiddle -> http://jsfiddle.net/Afa3f/3/ 查看更新的jsFiddle-> http://jsfiddle.net/Afa3f/3/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.