jQuery fadeIn在iPhone上不起作用 [英] jQuery fadeIn Not Working on iPhones
本文介绍了jQuery fadeIn在iPhone上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
相当基本的淡入/淡出.根本无法在任何iPhone上使用.在Safari桌面版本中工作正常.有什么建议吗?
Pretty basic fade in/out. Simply will not work on any iPhone. Works fine in Safari desktop version. Any suggestions?
谢谢!
<div class="maploading" style="float:right;margin-top:17px;">
<img src="whatever.jpg" />
</div>
<script type="text/javascript">
var $kds = jQuery.noConflict();
$kds("div.maploading").hide();
$kds("#addressSubmit").click(function() {
$kds("div.maploading").fadeIn(100).delay(1200).fadeOut(400);
});
</script>
推荐答案
我找到了解决方案.我不知道这是否对每个人都有效.显然,设置您想要显示/隐藏的对象需要'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>
愚蠢的苹果设备.
这篇关于jQuery fadeIn在iPhone上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文