html 显示 pdf文件四种方式:

1、

<embed src="pdf/wobu.pdf" type="application/pdf" width="100%" height="100%">

2、

<iframe src="pdf/wobu.pdf" width="100%" height="100%"></iframe>

3、

<object data="pdf/wobu.pdf" type="application/pdf" width="100%" height="100%"></object>

4、

<object data="pdf/wobu.pdf" type="application/pdf" width="100%" height="100%">
  <iframe src="pdf/wobu.pdf" width="100%" height="100%" style="border: none;"></iframe>
</object>
这四种方式无需引用js,无需编写js

如有问题,欢迎留言

最新文章

  1. 类型转换及返回json对象的问题
  2. JavaScript在A页面判断B页面加载完毕(iframe load)
  3. Tomcat version 7.0 only support J2EE 1.2。。。。。。。
  4. the bundle at bundle path is not signed using an apple submission certificate
  5. select * from salgrade for update和select * from salgrade for update nowait区别
  6. 英语语法 It all started the summer before second grade when our moving van pulled into her neighborhood
  7. JSTL 核心标签库
  8. Android中使用HTTP服务
  9. findOneAndUpdate的用法详解
  10. es6笔记1^_^let、string、number、math
  11. 解决MySQL 在 Java 检索遇到timestamp空值时报异常的问题
  12. 爬虫(二)Python网络爬虫相关基础概念、爬取get请求的页面数据
  13. DataTable序列化
  14. 微信硬件平台(八) 1 esp8266从自己的服务器获取token
  15. python学习第天14天。
  16. 改写pipeline
  17. shell脚本的基本结构以及如何执行
  18. cocos2d JS touch(触摸监听)-快速添加事件监听器到管理器
  19. linux网络配置命令(一)——ifconfig
  20. AOP 和 前置通知,后置通知

热门文章

  1. PO设计模式
  2. JavaScript 作用域不完全指北
  3. PTA 根据后序中序遍历输出先序遍历
  4. Springboot测试类之@RunWith注解
  5. CentOS7配置本地Yum源
  6. opencart 3伪静态seo url设置教程
  7. SaaS加速器 III 技术中心:提供SaaS Launchkit,快速定制,一云多端等能力,一云多端将通过小程序云实现
  8. AtCoder Grand Contest 038题解
  9. Scrapy笔记03- Spider详解
  10. Selenium XPath