[英]How to use Bootstrap Tooltips with image links?
I'm struggling to use Bootstrap tooltips with image links. 我正在努力使用带有图像链接的Bootstrap工具提示。 The problem is that when the
img
tag is inside the a
tag, the tooltip doesn't display at the correct spot and seems to flicker. 问题是,当
img
标签a
标签内时,工具提示不会显示在正确的位置并且似乎闪烁。 When inspecting the HTML, the actual a
tag is beneath the image altogether. 在检查HTML时,实际
a
标签完全位于图像下方。 Here's a fiddle: http://jsfiddle.net/paniwani/DUPyR/248/ 这是一个小提琴: http : //jsfiddle.net/paniwani/DUPyR/248/
This works: 这有效:
a { display: inline-block; }
http://jsfiddle.net/DUPyR/249/ http://jsfiddle.net/DUPyR/249/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.