Heim >Web-Frontend >HTML-Tutorial >关于下载的问题_html/css_WEB-ITnose
<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/2009827124252918.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/2009827124252918.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/2009827124252918.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/2009827124252918.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/2009827124252918.rar" ><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a>
这个问题我不会
</table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" ><a href="UploadFiles/2009827124252918.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/2009827124252918.rar" ><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a>
浏览器可识别的文件格式,点击后会直接在浏览器中打开。
在火狐和谷歌下可以给标签加上一个download属性,其他浏览器的话是不能实现的。
这个问题我不会
</table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" ><a href="UploadFiles/2009827124252918.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/2009827124252918.rar" ><img src="img/down.gif" style="max-width:90%" style="max-width:90%" border="0" / alt="关于下载的问题_html/css_WEB-ITnose" ></a>
哦,好像有点难度,我先学习研究下,好难烦啊啊啊啊啊!
果然是高手 啊啊啊啊啊啊