Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在将鼠标悬停在 imageMapster toolTip 地图中时遇到问题。实际上,我的代码在每次鼠标悬停时都会放置几个重复它们的缩略图。
这是我的代码:http: //jsfiddle.net/H3mRE/1/
我很感激任何帮助。 谢谢你。
该.append()方法插入指定的内容作为每个元素的最后一个子元素。但是当.html()用于设置元素的内容时,该元素中的任何内容都会被新内容完全替换。
.append()
.html()
使用 html()而不是append() 喜欢
html()
append()
$('.toolTIPbocadillo').html(thumbImg);
http://jsfiddle.net/H3mRE/2/
希望这会有所帮助