<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="490" height="30"><%response.write " <a href='Download.asp?BigClassName=" & rs("BigClassName") & "'>" & rs("BigClassName") & "</a> >> "if rs("SmallClassName") & ""<>"" then response.write "<a href='Download.asp?BigClassName=" & rs("BigClassName")&"&SmallClassName=" & rs("SmallClassName") & "'>" & rs("SmallClassName") & "</a> >> "end ifresponse.write rs("Title")%> </td> </tr> <tr> <td colspan="2"><br /> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" > <tr class='MC_DoShow_T1Tr1'> <td height="30" colspan="2" bgcolor="#FFFFFF"> <%=rs("Title")%></td> </tr> <tr bgcolor="#FFFFFF" > <td width="419" height="40" > 软件语言:<%=rs("Language")%></td> <td width="256" rowspan="5" align="center"><img src="<%if rs("PhotoUrl")="" then% alt="关于下载的问题_html/css_WEB-ITnose" >Img/nopic.gif<%else%><%=rs("PhotoUrl")%><%end if%>" alt="<%=rs("title")%>" width="200" style="max-width:90%" border="0" /></td> </tr> <tr> <td height="40" bgcolor="#FFFFFF" > 文件大小:<%=rs("FileSize")%></td> </tr> <tr> <td height="40" bgcolor="#FFFFFF"> 运行环境:<%=rs("System")%></td> </tr> <tr> <td height="40" bgcolor="#FFFFFF" > 整理日期:<%=FormatDateTime(rs("AddDate"),2)%></td> </tr> <tr> <td height="40" bgcolor="#FFFFFF" > 下载次数:<%=rs("Hits")%></td> </tr> </table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" ><a href="<%=rs("DownloadUrl")%>" target=_blank><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a></td> </tr> <tr> <td height="45" class="tit-3" style="font-weight: bold">下载说明</td> </tr> </table> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="10"></td> </tr> <tr> <td><FONT face=Verdana><%=rs("Content")%></FONT></td> </tr> </table></td> </tr> <tr> <td height="19"><div align="right">【<a href='javascript:history.back()' class="link1">返回</a>】</div> <div align="center"></div></td> </tr> </table> 点击下载以后,(下载按钮是个图片)不弹出下载框,而是跳转到新的页面,是什么原因?谢谢!!!!
回复讨论(解决方案)
去掉target=_blank看看
去掉 target=_blank
去掉target=_blank看看
不行!
如果不行,href="" 这里编译出来是什么样的?贴出来看看
</table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" ><a href="UploadFiles/2009827124124252918.jpg" target=_blank><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a></td> </tr> <tr> <td height="45" class="tit-3" style="font-weight: bold">下载说明</td> </tr> </table>
跳到新的页面之后才出下载框,还是跳了也不出?
跳到新页面,不出框
发一下论述
</table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" ><a href="UploadFiles/2009827124124252918.jpg" target=_blank><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a></td> </tr> <tr> <td height="45" class="tit-3" style="font-weight: bold">下载说明</td> </tr> </table>
下载的是图片?
</table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" ><a href="UploadFiles/2009827124124252918.jpg" target=_blank><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a></td> </tr> <tr> <td height="45" class="tit-3" style="font-weight: bold">下载说明</td> </tr> </table>
下载的是图片?
没有下载,只是把图片在新的页面打开了
这个问题我不会
这个问题我不会
</table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" ><a href="UploadFiles/2009827124124252918.jpg" target=_blank><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a></td> </tr> <tr> <td height="45" class="tit-3" style="font-weight: bold">下载说明</td> </tr> </table>
下载的是图片?
没有下载,只是把图片在新的页面打开了
图片当然会直接打开的,浏览器自动识别图片,压缩文件是直接下载的,你项目下载的都是图片?
<a href="UploadFiles/2009827124124252918.rar" ><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a>
这样的直接下载
一定要下载图片, http://blog.csdn.net/awinliu/article/details/9401083 这里有
这个问题我不会
</table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" ><a href="UploadFiles/2009827124124252918.jpg" target=_blank><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a></td> </tr> <tr> <td height="45" class="tit-3" style="font-weight: bold">下载说明</td> </tr> </table>
下载的是图片?
没有下载,只是把图片在新的页面打开了
图片当然会直接打开的,浏览器自动识别图片,压缩文件是直接下载的,你项目下载的都是图片?
<a href="UploadFiles/2009827124124252918.rar" ><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a>
这样的直接下载
一定要下载图片, http://blog.csdn.net/awinliu/article/details/9401083 这里有
哦,那其他文件哪?比如office文档,谢谢!
浏览器可识别的文件格式,点击后会直接在浏览器中打开。
在火狐和谷歌下可以给标签加上一个download属性,其他浏览器的话是不能实现的。
这个问题我不会
</table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" ><a href="UploadFiles/2009827124124252918.jpg" target=_blank><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a></td> </tr> <tr> <td height="45" class="tit-3" style="font-weight: bold">下载说明</td> </tr> </table>
下载的是图片?
没有下载,只是把图片在新的页面打开了
图片当然会直接打开的,浏览器自动识别图片,压缩文件是直接下载的,你项目下载的都是图片?
<a href="UploadFiles/2009827124124252918.rar" ><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a>
这样的直接下载
一定要下载图片, http://blog.csdn.net/awinliu/article/details/9401083 这里有
哦,那其他文件哪?比如office文档,谢谢!
http://blog.csdn.net/awinliu/article/details/9401083
用JS传
哦,好像有点难度,我先学习研究下,好难烦啊啊啊啊啊!
果然是高手 啊啊啊啊啊啊











