在ASP.NET中显示gif [英] Display gif in ASP.NET

查看:67
本文介绍了在ASP.NET中显示gif的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的asp.net中显示gif



我尝试了什么:



我看了每一个地方,我找到的所有解决方案都使用了进度面板这不是我想要的,我不希望它显示的时候需要花费很长时间来加载

how to display gif in my asp.net

What I have tried:

I looked every where, all the solutions i found used a progress panel this not what i want, i do not want it do display when things take too long to load

推荐答案

ASP.NET与gif无关(或讨厌),浏览器与gif或文件编码有关。

ASP.NET has nothing to do (or to hate) with gif, and browser has everything to do with the gif or the file encoding.
<img src="~/path/to/image.gif" alt="gif image" />



这将在您的网页中呈现gif图片。如果您想询问如何在页面加载时显示gif,请阅读此内容, image - 在asp.net页面加载时显示gif - Stack Overflow [ ^ ]。它只需要你处理页面加载事件和DOM加载来显示/隐藏图像。


This will render the gif image in your web page. If you wanted to ask, how to show a gif as the page loads, please read this, image - display a gif while asp.net page loads - Stack Overflow[^]. It just requires that you handle the events of page load and DOM load to show/hide the image.


这篇关于在ASP.NET中显示gif的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆