当前位置:网站首页>在网页中打开展示pdf文件
在网页中打开展示pdf文件
2022-07-07 21:54:00 【流楚丶格念】
文章目录
1、点击PDF文件链接
点击PDF文件链接在新的页面打开pdf文件(将PDF文件放在和HTML文件同等目录下):
<a href="Test.pdf" target="_blank">PDF<a>
如果将PDF文件改为Docx文件,那么点击之后就是下载页面,不会像PDF文件那样在新页面展示内容‘;
如果将PDF文件改为图片文件,那么点击之后就是在新页面展示图片;
如果将PDF文件改为一个文件夹,那么打开就是整个目录,且可以访问其内容,类似FTP服务
2、通过的浏览器:360、Firefox、Chrome
<embed width="800" height="600" src="test.pdf"></embed>
3、通过的浏览器:360、IE 未通过的浏览器:Firefox、Chrome
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="800" height="600" border="0">
<param name="SRC" value="test_pdf.pdf">
</object>
下面这个完整点:
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="100%" height="100%" border="0"><!--IE-->
<param name="_Version" value="65539">
<param name="_ExtentX" value="20108">
<param name="_ExtentY" value="10866">
<param name="_StockProps" value="0">
<param name="SRC" value="testing_pdf.pdf">
<embed src="testing_pdf.pdf" width="100%" height="800" href="testing_pdf.pdf"></embed><!--FF-->
</object>
4、通过的浏览器:360、Firefox、IE、Chrome
<iframe src="test_pdf.pdf" width="800" height="600"></iframe>
边栏推荐
猜你喜欢

Restricted linear table

Seven years' experience of a test engineer -- to you who walk alone all the way (don't give up)

10 schemes to ensure interface data security

Take you hand in hand to build feign with idea

How did a fake offer steal $540million from "axie infinity"?

第四期SFO销毁,Starfish OS如何对SFO价值赋能?
![Balanced binary tree [AVL tree] - insert, delete](/img/1f/cd38b7c6f00f2b3e85d4560181a9d2.png)
Balanced binary tree [AVL tree] - insert, delete

95. (cesium chapter) cesium dynamic monomer-3d building (building)

Aitm3.0005 smoke toxicity test

Installing gradle
随机推荐
HDU - 1260 tickets (linear DP)
Take you hand in hand to build Eureka server with idea
LinkedBlockingQueue源码分析-新增和删除
HB 5469 combustion test method for non-metallic materials in civil aircraft cabin
数据分析系列 之3σ规则/依据拉依达准则来剔除异常值
@Detailed introduction of configuration annotation
Flash download setup
Pycharm basic settings latest version 2022
Oracle string sorting
Chisel tutorial - 00 Ex.scala metals plug-in (vs Code), SBT and coursier exchange endogenous
Database interview questions + analysis
Pycharm essential plug-in, change the background (self use, continuous update) | CSDN creation punch in
codeforces每日5题(均1500)-第八天
postgres timestamp转人眼时间字符串或者毫秒值
507 field D - extraterrestrial relics
C language greedy snake
Install sqlserver2019
Pigsty: out of the box database distribution
一键免费翻译300多页的pdf文档
The file format and extension of XLS do not match