Home Backend Development PHP Tutorial 关于点击链接打开一个文档的有关问题

关于点击链接打开一个文档的有关问题

Jun 13, 2016 pm 01:18 PM
file href link office quot

关于点击链接打开一个文档的问题。
问题1、假设在file文件夹下面有“文档1.doc”和“文档2.docx”两个文档,第一个是office 2003的,第二个是office 2007的。我在程序里写link1可以正常链接得到。如果写link1就会叫我打开一个叫“文档2.zip”的文件。请问这是为什么?

问题2、当我点击link1的时候,会出现一个提示框,问我是要直接打开还是要下载到本地。能不能直接打开这个文件,而不出现这个提示框?


问题3、当用link3建立链接的时候,左边的语句会重新弹出一个窗口。怎么样定义这个新弹出窗口的长与宽,最好是能出现一个简易的窗口,只需要有一个关闭按钮就可以了!不需要用JS实现的,谢谢!

------解决方案--------------------
1、不清楚
2、你要打开就要求你写个读取word文档的东西,
3、js实现,弹出窗口很多js,google哈一大串
------解决方案--------------------
1、你的word 版本太低?
2、这是浏览器的行为,估计很难。
3、改用window.open() 方法
------解决方案--------------------
第二点也不难,用FLEX技术来读取文档就是了。。 可联系我Q:1466519819 。。ATTILAX2@QQ.COM
------解决方案--------------------
3是很简单的.
------解决方案--------------------
1、一直到 office 2003 微软都一直坚持着一个称为 action doc 的模式,在该模式下任何 office 文档都可以在 ie 中方便的打开。但是现实是很多用户都开始放弃 ie 了。再维持下去似乎没有必要了。所以 office 2007 起,微软采用了以 zip 封装的 xml 作为载体,所以连 ie 也不再识别它了

2、对于浏览器,只要是遇到了不能识别的文件类型,都将产生下载对话框

3、必须用 js 去实现,仅仅简单的 window.open 都不一定能满足您的需要,因为大多浏览器都默认拦截此类弹出窗口

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

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 view word documents in vscode How to view word documents in vscode How to view word documents in vscode How to view word documents in vscode May 09, 2024 am 09:37 AM

First, open the vscode software on the computer, click the [Extension] icon on the left, as shown in ① in the figure. Then, enter [officeviewer] in the search box of the extension interface, as shown in ② in the figure. Then, from the search Select [officeviewer] to install in the results, as shown in ③ in the figure. Finally, open the file, such as docx, pdf, etc., as shown below

What to do if the xlsx file cannot be opened on mobile phone What to do if the xlsx file cannot be opened on mobile phone Apr 25, 2024 am 08:28 AM

Why can’t WPS and Excel documents be opened on Apple’s mobile phone? It shows that the file cannot be previewed. 1. The reason why WPS and Excel documents cannot be previewed on Apple’s mobile phone is because there are no applications that support these file formats installed on the mobile phone. The solution is to install an application that supports the document format. Application to convert documents to PDF format and send documents to computers or other devices for opening. 2. First check what the suffix of the file is. If it is an excel file but cannot be opened, it means that the file type is not registered in the computer's folder options. 3. First, open the QQ browser on your mobile phone; click the button in the middle below; click "File Download"; click "Document" to select the excel file you want to open. Summary Open QQ browsing

Xiaomi Mi Pad 6 series launches PC-level WPS Office in full quantity Xiaomi Mi Pad 6 series launches PC-level WPS Office in full quantity Apr 25, 2024 pm 09:10 PM

According to news from this site on April 25, Xiaomi officially announced today that Xiaomi Mi Pad 6, Mi Pad 6 Pro, Mi Pad 6 Max 14, and Mi Pad 6 S Pro now fully support PC-level WPSOffice. Among them, Xiaomi Mi Pad 6 Pro and Xiaomi Mi Pad 6 need to upgrade the system version to V816.0.4.0 and above before they can download WPSOfficePC from the Xiaomi App Store. WPSOfficePC adopts the same operation and layout as a computer, and paired with tablet keyboard accessories, it can improve office efficiency. According to the previous evaluation experience of this site, WPSOfficePC is significantly more efficient when editing documents, forms, presentations and other files. Moreover, various functions that are inconvenient to use on mobile terminals, such as text layout, picture insertion,

WPS and Office do not have Chinese fonts, and Chinese font names are displayed in English. WPS and Office do not have Chinese fonts, and Chinese font names are displayed in English. Jun 19, 2024 am 06:56 AM

My friend's computer, all Chinese fonts such as imitation Song, Kai style, Xing Kai, Microsoft Yahei, etc. cannot be found in WPS and OFFICE. The editor below will tell you how to solve this problem. The fonts in the system are normal, but all fonts in the WPS font options are not available, only cloud fonts. OFFICE only has English fonts, not any Chinese fonts. After installing different versions of WPS, English fonts are available, but there is also no Chinese font. Solution: Control Panel → Categories → Clock, Language, and Region → Change Display Language → (Region and Language) Management → (Language for Non-Unicode Programs) Change System Regional Settings → Chinese (Simplified, China) → Restart. Control Panel, change the view mode in the upper right corner to "Category", Clock, Language and Region, change

Xiaomi Mi Pad 6 series launches PC-level WPS in full volume! Same layout and operation as computer Xiaomi Mi Pad 6 series launches PC-level WPS in full volume! Same layout and operation as computer Apr 25, 2024 pm 06:40 PM

According to news on April 25, today, Xiaomi Tablet officially announced that Xiaomi Tablet 6, Xiaomi Tablet 6 Pro, Xiaomi Tablet 6 Max 14, and Xiaomi Tablet 6 S Pro now fully support PC-level WPSOffice. It is understood that Xiaomi Mi Pad 6 and Mi Pad 6 Pro need to upgrade the system version to V816.0.4.0 and above before they can download WPSOffice from the Xiaomi App Store. WPSOfficePCforPad has the same operation and page layout as the computer version, and is officially said to "achieve high efficiency on the tablet that is comparable to the computer version of WPS." In addition, in Xiaomi ThePaper OS, Xiaomi has also brought a new multi-tasking system to the Xiaomi tablet. , the interaction is similar to PC window mode, officially called self-

3d rendering, computer configuration? What kind of computer is needed to design 3D rendering? 3d rendering, computer configuration? What kind of computer is needed to design 3D rendering? May 06, 2024 pm 06:25 PM

3d rendering, computer configuration? 1 Computer configuration is very important for 3D rendering, and sufficient hardware performance is required to ensure rendering effect and speed. 23D rendering requires a lot of calculations and image processing, so it requires high-performance CPU, graphics card and memory. 3 It is recommended to configure at least one computer with at least 6 cores and 12 threads CPU, more than 16GB of memory and a high-performance graphics card to meet the higher 3D rendering needs. At the same time, you also need to pay attention to the computer's heat dissipation and power supply configuration to ensure the stable operation of the computer. What kind of computer is needed to design 3D rendering? I am also a designer, so I will give you a set of configurations (I will use it again) CPU: amd960t with 6 cores (or 1090t directly overclocked) Memory: 1333

How to convert PDF to PPT in Foxit PDF Editor_Tutorial on how to convert PDF to PPT in Foxit PDF Editor How to convert PDF to PPT in Foxit PDF Editor_Tutorial on how to convert PDF to PPT in Foxit PDF Editor Apr 30, 2024 pm 03:13 PM

1. First open Foxit PDF Editor software. 2. Then use Foxit PDF Editor to open the PDF document, as shown in the figure: 3. Switch to the [Convert] tab on the top toolbar. 4. Then select [PowerPoint] in the [To MSOffice] drop-down menu. 5. Finally, save the converted PPT document to the desired location.

How to handle 'Compatibility Mode' displayed when creating a new document in Word 2010 How to handle 'Compatibility Mode' displayed when creating a new document in Word 2010 Apr 26, 2024 am 11:10 AM

For users who upgraded and installed Office2010 from Office2007, or installed Office2010 after uninstalling Office2007, if the default Word document saving format has been set to word2003 document format (.doc) in word2007, [Compatibility Mode] will be created by default when creating a new document in word2010 】Word document, at this time, even if the default saving format is set to .docx format in word2010, the problem still cannot be solved. You can try to solve the problem by deleting the default template file of word2010. Taking the Windows 7 system as an example, the specific operations are as follows: Step 1, close word2010 Software, used to open the current system

See all articles