且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery fadeIn在iPhone上不起作用

更新时间:2023-01-24 11:27:45

我找到了解决方案.我不知道这是否对每个人都有效.显然,设置您想要显示/隐藏的对象需要'position:absolute'.值得注意的是,这可能会大大改变您的元素位置.

I found a solution. I don't know if this will work for everyone. Apparently, setting the object you wish to show/hide requires 'position:absolute'. It should be worth noting this might substantially change your element positioning.

        <div class="maploading" style="position:absolute;display:none;">
            <img src="whatever.jpg" />
        </div>
        <script type="text/javascript">
            var $kds = jQuery.noConflict();
            $kds("#addressSubmit").click(function() { 
                $kds("div.maploading").fadeIn(100).delay(1200).fadeOut(400); 
            });
        </script>

愚蠢的苹果设备.