$(".tpk_list ul li").each(function(){
  $(this).click(function(){
if($(this).find(".photo_right").css("display")=="block")
{
  $(this).css({"border":"1px solid blue"});
}
else
{
  $(this).css({"border":"1px solid red"});
}
  });
  $(this).mouseover(function(){
    $(this).css({"border":"1px solid red"});
  });
  $(this).mouseout(function(){
    $(this).css({"border":"1px solid blue"});
  });});
我要的效果是 鼠标放上去 是红色 离开是蓝色 点击后边框是红色 
可现在这样做的话 点击后红色闪一下就变成了蓝色