搜索
首页web前端html教程关于下载的问题_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="/static/imghwm/default1.png"  data-src="<%if rs("  class="lazy"  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="/static/imghwm/default1.png"  data-src="img/down.gif"  class="lazy"      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="/static/imghwm/default1.png"  data-src="img/down.gif"  class="lazy"      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="/static/imghwm/default1.png"  data-src="img/down.gif"  class="lazy"      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="/static/imghwm/default1.png"  data-src="img/down.gif"  class="lazy"      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="/static/imghwm/default1.png"  data-src="img/down.gif"  class="lazy"      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="/static/imghwm/default1.png"  data-src="img/down.gif"  class="lazy"      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/2009827124252918.jpg" target=_blank><img  src="/static/imghwm/default1.png"  data-src="img/down.gif"  class="lazy"      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="/static/imghwm/default1.png"  data-src="img/down.gif"  class="lazy"      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/2009827124252918.jpg" target=_blank><img  src="/static/imghwm/default1.png"  data-src="img/down.gif"  class="lazy"      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="/static/imghwm/default1.png"  data-src="img/down.gif"  class="lazy"      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传

哦,好像有点难度,我先学习研究下,好难烦啊啊啊啊啊!

果然是高手 啊啊啊啊啊啊

声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
如何在标签上设置lang属性?为什么这很重要?如何在标签上设置lang属性?为什么这很重要?May 08, 2025 am 12:03 AM

设置标签的lang属性是优化网页可访问性和SEO的关键步骤。1)在标签中设置lang属性,如。2)在多语言内容中,为不同语言部分设置lang属性,如。3)使用符合ISO639-1标准的语言代码,如"en"、"fr"、"zh"等。正确设置lang属性可以提高网页的可访问性和搜索引擎排名。

HTML属性的目的是什么?HTML属性的目的是什么?May 07, 2025 am 12:01 AM

htmlattributeseresene forenhancingwebelements'functionalityandAppearance.TheyAdDinformationTodeFineBehavior,外观和互动,使网站互动,响应式,visalalyAppealing.AttributesLikutesLikeSlikEslikesrc,href,href,href,类,类型,类型,和dissabledtransfransformformformformformformformformformformformformformformforment

您如何在HTML中创建列表?您如何在HTML中创建列表?May 06, 2025 am 12:01 AM

toCreateAlistinHtml,useforforunordedlistsandfororderedlists:1)forunorderedlists,wrapitemsinanduseforeachItem,RenderingeringAsabulleTedList.2)fororderedlists,useandfornumberedlists,useandfornumberedlists,casundfornumberedlists,customeizableWithTheTtheTthetTheTeTeptTributeFordTributeForderForderForderFerentNumberingSnumberingStyls。

HTML行动:网站结构的示例HTML行动:网站结构的示例May 05, 2025 am 12:03 AM

HTML用于构建结构清晰的网站。1)使用标签如、、定义网站结构。2)示例展示了博客和电商网站的结构。3)避免常见错误如标签嵌套不正确。4)优化性能通过减少HTTP请求和使用语义化标签。

您如何将图像插入HTML页面?您如何将图像插入HTML页面?May 04, 2025 am 12:02 AM

toinsertanimageIntoanhtmlpage,usethetagwithsrcandaltattributes.1)usealttextforAcccessibilityandseo.2)instementRcsetForresponSiveImages.3)applylazyloadingWithLoadingWithLoading =“ lazy” tooptimizeperformance.4)tooptimizeperformance.4)

HTML的目的:启用Web浏览器可以显示内容HTML的目的:启用Web浏览器可以显示内容May 03, 2025 am 12:03 AM

HTML的核心目的在于让浏览器理解并展示网页内容。1.HTML通过标签定义网页结构和内容,如、到、等。2.HTML5增强了多媒体支持,引入了和标签。3.HTML提供了表单元素,支持用户交互。4.优化HTML代码可提升网页性能,如减少HTTP请求和压缩HTML。

为什么HTML标签对Web开发很重要?为什么HTML标签对Web开发很重要?May 02, 2025 am 12:03 AM

htmltagsareessentialforwebdevelopmentastheyandendenhancewebpages.1)heSdefinElayout,语义和互动性。2)SemantictagsiCtagSimproveCacsibilitieAndseo.3)pose poseriblesibilityAndseoandseo.3)poser

说明将一致的编码样式用于HTML标签和属性的重要性。说明将一致的编码样式用于HTML标签和属性的重要性。May 01, 2025 am 12:01 AM

一致的HTML编码风格很重要,因为它提高了代码的可读性、可维护性和效率。1)使用小写标签和属性,2)保持一致的缩进,3)选择并坚持使用单引号或双引号,4)避免在项目中混合使用不同风格,5)利用自动化工具如Prettier或ESLint来确保风格的一致性。

See all articles

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热工具

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

功能强大的PHP集成开发环境

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)

Dreamweaver Mac版

Dreamweaver Mac版

视觉化网页开发工具

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

安全考试浏览器

安全考试浏览器

Safe Exam Browser是一个安全的浏览器环境,用于安全地进行在线考试。该软件将任何计算机变成一个安全的工作站。它控制对任何实用工具的访问,并防止学生使用未经授权的资源。