【问题标题】:jquery .hide().fadeIn() ie cleartype glitchjquery .hide().fadeIn() 即 cleartype 故障
【发布时间】:2012-01-29 03:22:05
【问题描述】:

我已经在我的 js 中添加了这个:

    function customFades() {
    (function($) {
        $.fn.fadeIn = function(speed, callback) {
            return this.animate({opacity: 'show'}, speed, function() {
                if (jQuery.browser.msie) 
                    this.style.removeAttribute('filter'); 
                if (jQuery.isFunction(callback))
                    callback(); 
            });
        };

        $.fn.fadeOut = function(speed, callback) {
            return this.animate({opacity: 'hide'}, speed, function() {
                if (jQuery.browser.msie) 
                    this.style.removeAttribute('filter'); 
                if (jQuery.isFunction(callback))
                    callback(); 
            });
        };


    })
    (jQuery);
}

现在我在使用 .hide().fadeIn(); 时遇到了问题

所以我的问题是如何在这个问题上应用相同类型的修复?

【问题讨论】:

  • 我是否添加类似 $.fn.hide = ??还是应该更像 $.fn.hide().fadeIn() = ??

标签: jquery hide fadein cleartype


【解决方案1】:

似乎只有在我链接动画时才会出现问题 .hide().fadeIn();如果我只使用 .fadeIn() 那么它可以工作..

【讨论】:

    猜你喜欢
    • 2012-01-21
    • 2011-05-14
    • 2011-08-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-10
    • 2012-07-07
    • 1970-01-01
    相关资源
    最近更新 更多