最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to use Bootstrap Tooltips with image links? - Stack Overflow

programmeradmin9浏览0评论

I'm struggling to use Bootstrap tooltips with image links. 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. When inspecting the HTML, the actual a tag is beneath the image altogether. Here's a fiddle: /

I'm struggling to use Bootstrap tooltips with image links. 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. When inspecting the HTML, the actual a tag is beneath the image altogether. Here's a fiddle: http://jsfiddle/paniwani/DUPyR/248/

Share Improve this question edited Mar 29, 2012 at 21:56 FelipeAls 22.2k9 gold badges56 silver badges74 bronze badges asked Feb 20, 2012 at 2:25 paniwanipaniwani 6493 gold badges9 silver badges18 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 17

This works:

a { display: inline-block; }

http://jsfiddle/DUPyR/249/

发布评论

评论列表(0)

  1. 暂无评论