0
 $(".post").hover(function(){
            $(".buttons input", this).show();

        });

一旦鼠标关闭.post,使相同元素再次隐藏的最简单方法是什么?我正在尝试制作类似于 youtube 帖子的内容(按钮在鼠标上显示/隐藏)

4

1 回答 1

2

显示标记

基于假设,

$(".post").hover(function(){
      $(".buttons input", this).fadeIn('slow');
},
function(){
 $(".buttons input", this).fadeOut('slow');
});
于 2012-05-25T17:37:36.213 回答