当前位置:网站首页>在网页中打开展示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>
边栏推荐
- An example analysis of MP4 file format parsing
- Installing gradle
- mysql8.0 ubuntu20.4
- 10 schemes to ensure interface data security
- Reverse output three digit and arithmetic sequence
- Balanced binary tree [AVL tree] - insert, delete
- P2141 [noip2014 popularization group] abacus mental arithmetic test
- c—线性表
- 一键免费翻译300多页的pdf文档
- Aitm3.0005 smoke toxicity test
猜你喜欢

One click free translation of more than 300 pages of PDF documents

Flash download setup

The file format and extension of XLS do not match

Pycharm essential plug-in, change the background (self use, continuous update) | CSDN creation punch in

Problems faced when connecting to sqlserver after downloading (I)

MP4文件格式解析之结合实例分析

Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module

SQL connection problem after downloading (2)
![[experiment sharing] log in to Cisco devices through the console port](/img/e4/fc72ed57de74a0dd51c484a1c2f348.png)
[experiment sharing] log in to Cisco devices through the console port

Basic learning of SQL Server -- creating databases and tables with the mouse
随机推荐
保证接口数据安全的10种方案
[experiment sharing] log in to Cisco devices through the console port
自动化测试:Robot FrameWork框架90%的人都想知道的实用技巧
Display the server hard disk image to the browser through Servlet
P1067 [noip2009 popularity group] polynomial output (difficult, pit)
C - linear table
Kubectl's handy command line tool: Oh my Zsh tips and tricks
Problems faced when connecting to sqlserver after downloading (I)
Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)
Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module
Enumeration, simulation, and sorting
Chisel tutorial - 04 Control flow in chisel
Oracle string sorting
一鍵免費翻譯300多頁的pdf文檔
Take you hand in hand to build feign with idea
AITM3.0005 烟雾毒性测试
企业应用需求导向开发之人力部门,员工考勤记录和实发工资业务程序案例
10 schemes to ensure interface data security
平衡二叉樹【AVL樹】——插入、删除
Take you hand in hand to build Eureka server with idea