hover()方法切换事件只对color,background-color有效么
$(function(){
$("#div1").hover(
function(){
$(this).css("display","none");
},
function(){
$(this).css("display","block");
}
);
})代码换成这样,效果是闪一下,为什么呢