asp.net – 动画gif不动画提交

前端之家收集整理的这篇文章主要介绍了asp.net – 动画gif不动画提交前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个表单,其中提交功能需要几分钟.我想在提交正在启动时显示动画GIF.下面的代码显示了gif,但它并没有移动.我可以做些什么来实现
<script type="text/javascript">

    $(function() {
        $("#submit").click(function() {
            $("#wait").show();
            return true;
        });
    });

</script>

<% Using Html.BeginForm%>
<%-- VarIoUs input fields here --%>
<input id="submit" type="submit" value="Submit" />
<img id="wait" src="../../Content/images/ajax-loader.gif" alt="" style="display: none" />
<% End Using%>

解决方法

这个问题只发生在IE中,正确吗? Rick Strahl在他的博客上讨论了一段时间.请务必阅读评论.

Animated GIF images in hidden page elements

原文链接:https://www.f2er.com/aspnet/245831.html

猜你在找的asp.Net相关文章