ツールチップのバブルを中央に配置しようとしていますが、成功しません:(解決策は非常に単純だと思いますが、それを実現できないと思います。誰かが私を助けてくれますか?THX!!ここでフィドル
私のコード:
$(document).ready(function(){
$(".menu .a").hover(function() {
var checkWidth = $(this).outerWidth() - $(this).outerWidth()/2;
$(this).next("em").css({left:checkWidth}).animate({opacity: "show"}, "slow");
}, function() {
$(this).next("em").animate({opacity: "hide"}, "fast");
});
});