Table of Contents
回复讨论(解决方案)
Home Web Front-end HTML Tutorial 关于下载的问题_html/css_WEB-ITnose

关于下载的问题_html/css_WEB-ITnose

Jun 21, 2016 am 09:28 AM
download

<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/imghw/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/imghw/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>
Copy after login




点击下载以后,(下载按钮是个图片)不弹出下载框,而是跳转到新的页面,是什么原因?谢谢!!!!


回复讨论(解决方案)

去掉target=_blank看看

去掉 target=_blank

去掉target=_blank看看


不行!

如果不行,href="<%=rs("DownloadUrl")%>" 这里编译出来是什么样的?贴出来看看

     </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/imghw/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>
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

跳到新的页面之后才出下载框,还是跳了也不出?

跳到新页面,不出框


发一下论述

     </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/imghw/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>
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login



下载的是图片?


     </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/imghw/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>
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login



下载的是图片?



没有下载,只是把图片在新的页面打开了

这个问题我不会

这个问题我不会



     </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/imghw/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>
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login



下载的是图片?



没有下载,只是把图片在新的页面打开了



图片当然会直接打开的,浏览器自动识别图片,压缩文件是直接下载的,你项目下载的都是图片?
<a href="UploadFiles/2009827124252918.rar" ><img  src="/static/imghw/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>
Copy after login
Copy after login
Copy after login

这样的直接下载

一定要下载图片, 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/imghw/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>
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login



下载的是图片?



没有下载,只是把图片在新的页面打开了



图片当然会直接打开的,浏览器自动识别图片,压缩文件是直接下载的,你项目下载的都是图片?
<a href="UploadFiles/2009827124252918.rar" ><img  src="/static/imghw/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>
Copy after login
Copy after login
Copy after login

这样的直接下载

一定要下载图片, 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/imghw/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>
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login



下载的是图片?



没有下载,只是把图片在新的页面打开了



图片当然会直接打开的,浏览器自动识别图片,压缩文件是直接下载的,你项目下载的都是图片?
<a href="UploadFiles/2009827124252918.rar" ><img  src="/static/imghw/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>
Copy after login
Copy after login
Copy after login

这样的直接下载

一定要下载图片, http://blog.csdn.net/awinliu/article/details/9401083  这里有



哦,那其他文件哪?比如office文档,谢谢!

http://blog.csdn.net/awinliu/article/details/9401083 

用JS传

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

果然是高手 啊啊啊啊啊啊

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to use magnet links How to use magnet links Feb 18, 2024 am 10:02 AM

Magnet link is a link method for downloading resources, which is more convenient and efficient than traditional download methods. Magnet links allow you to download resources in a peer-to-peer manner without relying on an intermediary server. This article will introduce how to use magnet links and what to pay attention to. 1. What is a magnet link? A magnet link is a download method based on the P2P (Peer-to-Peer) protocol. Through magnet links, users can directly connect to the publisher of the resource to complete resource sharing and downloading. Compared with traditional downloading methods, magnetic

How to download episodes of Hongguo short drama How to download episodes of Hongguo short drama Mar 11, 2024 pm 09:16 PM

Hongguo Short Play is not only a platform for watching short plays, but also a treasure trove of rich content, including novels and other exciting content. This is undoubtedly a huge surprise for many users who love reading. However, many users still don’t know how to download and watch these novels in Hongguo Short Play. In the following, the editor of this website will provide you with detailed downloading steps. I hope it can help everyone in need. Partners. How to download and watch the Hongguo short play? The answer: [Hongguo short play] - [Audio book] - [Article] - [Download]. Specific steps: 1. First open the Hongguo Short Drama software, enter the homepage and click the [Listen to Books] button at the top of the page; 2. Then on the novel page we can see a lot of article content, here

What should I do if I download other people's wallpapers after logging into another account on wallpaperengine? What should I do if I download other people's wallpapers after logging into another account on wallpaperengine? Mar 19, 2024 pm 02:00 PM

When you log in to someone else's steam account on your computer, and that other person's account happens to have wallpaper software, steam will automatically download the wallpapers subscribed to the other person's account after switching back to your own account. Users can solve this problem by turning off steam cloud synchronization. What to do if wallpaperengine downloads other people's wallpapers after logging into another account 1. Log in to your own steam account, find cloud synchronization in settings, and turn off steam cloud synchronization. 2. Log in to someone else's Steam account you logged in before, open the Wallpaper Creative Workshop, find the subscription content, and then cancel all subscriptions. (In case you cannot find the wallpaper in the future, you can collect it first and then cancel the subscription) 3. Switch back to your own steam

How to download videos from a video account 'Must-see: A simple way to save videos from a video account' How to download videos from a video account 'Must-see: A simple way to save videos from a video account' Feb 06, 2024 pm 06:42 PM

Now more and more people are starting to play video accounts. Video accounts are also a short video platform where they can share their daily life and make money through video accounts. Recently, I saw some friends asking why the videos from the WeChat video account were not downloaded. Yang Shuaikang went to try it, and there was indeed no download button, so he could only extract the video through other means. Today Yang Shuaikang will share with you a stupid Method, come and take a look. How to extract videos from WeChat video accounts 1. Open our computer version of WeChat and find [Video Account] on the left; 2. Find the video you want to download through search; 3. Finally, use the screen recording tool to adjust the size of the recorded video. Just record and edit it at the end. PS: 1. This method can only be recorded on the computer version, not on the mobile phone.

How to download links starting with 115://? Download method introduction How to download links starting with 115://? Download method introduction Mar 14, 2024 am 11:58 AM

Recently, many users have been asking the editor, how to download links starting with 115://? If you want to download links starting with 115://, you need to use the 115 browser. After you download the 115 browser, let's take a look at the download tutorial compiled by the editor below. Introduction to how to download links starting with 115:// 1. Log in to 115.com, download and install the 115 browser. 2. Enter: chrome://extensions/ in the 115 browser address bar, enter the extension center, search for Tampermonkey, and install the corresponding plug-in. 3. Enter in the address bar of 115 browser: Grease Monkey Script: https://greasyfork.org/en/

How to download files from 123 cloud disk How to download files from 123 cloud disk Feb 23, 2024 pm 08:58 PM

123 cloud disk can download many files, so how to download files specifically? Users can select the file they want to download and click to download, or right-click the file and select download. This introduction to the method of downloading files from 123 cloud disk can tell you how to download it specifically. Friends who don’t know much about it should hurry up and take a look! How to download files from 123 cloud disk 1. First open the software, click on the software that needs to be downloaded, and then there will be a download button on it. 2. Or right-click the software and you can see the download button in the list. 3. There will be a download window, select the location to download. 4. After selecting, click Download to download these files.

How to download Baidu Netdisk files How to download Baidu Netdisk files Feb 23, 2024 pm 06:20 PM

How to download Baidu Netdisk files? You can download the required files in Baidu Netdisk, but most users don’t know how to download files in Baidu Netdisk. Next is the diagram of how to download Baidu Netdisk files brought by the editor to users. Text tutorial, interested users come and take a look! How to download Baidu Netdisk files 1. First open Baidu Netdisk and find the file that needs to be downloaded; 2. Then click the [Download] button in the toolbar as shown below; 3. Finally, a window will pop up, select [Download] to complete. File downloads can be opened at any time.

How to download Quark network disk to local? How to save files downloaded from Quark Network Disk back to the local computer How to download Quark network disk to local? How to save files downloaded from Quark Network Disk back to the local computer Mar 13, 2024 pm 08:31 PM

Many users need to download files when using Quark Network Disk, but we want to save them locally, so how to set this up? Let this site introduce to users in detail how to save files downloaded from Quark Network Disk back to the local computer. How to save files downloaded from Quark network disk back to your local computer 1. Open Quark, log in to your account, and click the list icon. 2. After clicking the icon, select the network disk. 3. After entering Quark Network Disk, click My Files. 4. After entering My Files, select the file you want to download and click the three-dot icon. 5. Check the file you want to download and click Download.

See all articles