当前位置:网站首页>在网页中打开展示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>
边栏推荐
- Take you hand in hand to build Eureka server with idea
- P1055 [noip2008 popularization group] ISBN number
- 保证接口数据安全的10种方案
- AWS AWS help error
- Rectification characteristics of fast recovery diode
- Svn relocation
- Reverse output three digit and arithmetic sequence
- Apng2gif solutions to various problems
- One of the anti climbing methods
- Take you hand in hand to build Eureka client with idea
猜你喜欢

Chisel tutorial - 04 Control flow in chisel

MySQL Architecture

Chisel tutorial - 05 Sequential logic in chisel (including explicit multi clock, explicit synchronous reset and explicit asynchronous reset)

用语雀写文章了,功能真心强大!

用語雀寫文章了,功能真心强大!

Pypharm uses, and the third-party library has errors due to version problems

Laser slam learning (2d/3d, partial practice)

Traduction gratuite en un clic de plus de 300 pages de documents PDF

Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)

Svn relocation
随机推荐
PostGIS learning
光流传感器初步测试:GL9306
Restricted linear table
mysql8.0 ubuntu20.4
35岁那年,我做了一个面临失业的决定
Dependency injection
网上买基金安全么?
Pycharm basic settings latest version 2022
May day C - most
Benchmarking Detection Transfer Learning with Vision Transformers(2021-11)
C - minute number V3
AITM3.0005 烟雾毒性测试
Pigsty:开箱即用的数据库发行版
Seven years' experience of a test engineer -- to you who walk alone all the way (don't give up)
Chisel tutorial - 04 Control flow in chisel
Chisel tutorial - 01 Introduction to Scala
激光slam学习(2D/3D、偏实践)
Install sqlserver2019
Extract the file name under the folder under win
Magic fast power