Home  >  Article  >  Web Front-end  >  How to write link download code on a web page_html/css_WEB-ITnose

How to write link download code on a web page_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:14:401373browse

There is a file in my ftp server. I want to click the link on the webpage, and the download dialog box will pop up.
My link is written as Sometimes a link pops up and I can download it, but sometimes the pop-up dialog box is really garbled
How to solve this, how to write download


Reply to the discussion (Solution)

Then you must set the encoding format of the web page

Then you must set the encoding format of the web page
How to set it up

< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">





The format must be grasped, and try to use English paths in the connection

Statement:
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