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

前端之家收集整理的这篇文章主要介绍了asp.net – 动画gif不动画提交前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个表单,其中提交功能需要几分钟.我想在提交正在启动时显示动画GIF.下面的代码显示了gif,但它并没有移动.我可以做些什么来实现
  1. <script type="text/javascript">
  2.  
  3. $(function() {
  4. $("#submit").click(function() {
  5. $("#wait").show();
  6. return true;
  7. });
  8. });
  9.  
  10. </script>
  11.  
  12. <% Using Html.BeginForm%>
  13. <%-- VarIoUs input fields here --%>
  14. <input id="submit" type="submit" value="Submit" />
  15. <img id="wait" src="../../Content/images/ajax-loader.gif" alt="" style="display: none" />
  16. <% End Using%>

解决方法

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

Animated GIF images in hidden page elements

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