[英]Tooltip only working on certain part of href
I am trying to implement some simple tooltip (TipTip) effect, but for some weird reason i cannot get it to work: 我正在尝试实现一些简单的工具提示(TipTip)效果,但是出于某些奇怪的原因,我无法使其正常工作:
http://basenharald.nl/3d/ Click on pssst, there you will see some social icons. http://basenharald.nl/3d/单击pssst,您将在其中看到一些社交图标。 I am trying to create a tooltip on the facebook icon.
我正在尝试在Facebook图标上创建工具提示。 Wrapped a href around it (gave it a red border for testing).
将href包裹在其周围(为红色边框进行测试)。 Now when i hover the href the tooltip will only appear on the bottom part of the href element.
现在,当我将href悬停时,工具提示只会出现在href元素的底部。
I cannot see why it does this. 我不明白为什么这样做。 since the border clearly indicates that the href is fully wrapped around the icon.
因为边框清楚地表明href完全包裹在图标周围。
Some help would be appreciated. 一些帮助,将不胜感激。 So far i tried to set: height, z-index, display:block (makes the layout fall apart), float.
到目前为止,我尝试设置:高度,z-index,display:block(使布局散开),浮动。 Nothing seems to work.
似乎没有任何作用。
Furthermore. 此外。 I want the tooltip to apear on the bottom.
我希望工具提示出现在底部。 This works fine as long as i do not scroll to the right.
只要我不向右滚动,此方法就可以正常工作。 When scrolled to the right it apears on the left and the layout breaks.
滚动到右侧时,它在左侧出现,并且布局中断。
Thanks in advance! 提前致谢!
您有一个带有class =“ tab”的div,可以覆盖面板(z-index:999)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.