当前位置:网站首页>在网页中打开展示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>
边栏推荐
- Chisel tutorial - 01 Introduction to Scala
- Connect diodes in series to improve voltage withstand
- Flash download setup
- Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module
- Dependency injection 2 advantage lifecycle
- 一鍵免費翻譯300多頁的pdf文檔
- C language learning
- Basic learning of SQL Server -- creating databases and tables with the mouse
- 解析token的网址
- [summary] some panels and videos seen
猜你喜欢
Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module
Navicat connects Oracle
数据湖(十五):Spark与Iceberg整合写操作
Solutions to problems in sqlserver deleting data in tables
Kubectl's handy command line tool: Oh my Zsh tips and tricks
HB 5469民用飞机机舱内部非金属材料燃烧试验方法
Automated testing: robot framework is a practical skill that 90% of people want to know
Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)
Learn about scratch
Connect diodes in series to improve voltage withstand
随机推荐
通达信买基金安全吗?
SQL connection problem after downloading (2)
【推荐系统基础】正负样本采样和构造
BSS 7230 航空内饰材料阻燃性能测试
Postgres timestamp to human eye time string or millisecond value
P1067 [noip2009 popularity group] polynomial output (difficult, pit)
Magic fast power
Alibaba cloud MySQL cannot connect
一键免费翻译300多页的pdf文档
Svn relocation
Apng2gif solutions to various problems
Jisuan Ke - t3104
BSS 7230 flame retardant performance test of aviation interior materials
Kubectl's handy command line tool: Oh my Zsh tips and tricks
Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module
LinkedBlockingQueue源码分析-新增和删除
Chisel tutorial - 00 Ex.scala metals plug-in (vs Code), SBT and coursier exchange endogenous
How did a fake offer steal $540million from "axie infinity"?
P1308 [noip2011 popularity group] count the number of words
postgis学习