fadeOut()效果在Firefox上效果很好,但在chrome上效果不佳 [英] fadeOut() effect works fine on firefox, but not on chrome

查看:65
本文介绍了fadeOut()效果在Firefox上效果很好,但在chrome上效果不佳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目列表,每个项目旁边都有一个标准CRUD.我在下面添加了js函数,以使项目在删除时淡出.

I have a list of items with a standard CRUD next to each. I added the js function below for items to fade when deleting.

该效果在Firefox上效果理想,但在Chrome上效果不佳.它确实删除了该项目,但没有显示效果.

The effect works perfect on Firefox, but on Chrome it doesn't. It does delete the item, but doesn't show the effect.

任何人都可以帮忙吗?发生了什么事?

Can anyone help? What is going on?

$(document).ready(function() {
    $('.delete_phone').bind('ajax:success', function() {  
        $(this).closest('tr').fadeOut();  
    });
});

非常感谢!

推荐答案

使用$(document).load()代替$(document).ready()

这篇关于fadeOut()效果在Firefox上效果很好,但在chrome上效果不佳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆