没有扩展名的图片地址怎么写

来源:百度知道 编辑:UC知道 时间:2024/06/08 11:34:32
有这样一段代码
<img src="http://www.baidu.com/MyRank?s=3&url=www.baidu.com" style="width:80px;height:19px;border:0px;" alt="PageRank" align=absmiddle>问题在这里
src后面的http://www.baidu.com/MyRank?s=3&url=www.baidu.com这个图片地址是怎么写的,这个图片是以url的改变而改变的,请问用ASP怎么实现

用Response.ContentType控制文件输出类型:

比如:
<% Response.ContentType = "text/HTML" %>
<% Response.ContentType = "image/GIF" %>
<% Response.ContentType = "image/JPEG" %>
<% Response.ContentType = "text/plain" %>
<% Response.ContentType = "image/JPEG" %>
<% Response.ContentType = "application/x-cdf" %>
等等.

一般默认当然是text/HTML

同理也适用于文件下载和视频播放.