如何在 HTML5 页面中嵌入 PDF 文件?
要在 HTML5 页面中嵌入 PDF 文件,请使用 <iframe> 元素。
<!DOCTYPE html> <html> <head> <title>HTML iframe Tag</title> </head> <body> <h1>HTML5 Tutorial</h1> <iframe src = " https://tutorialspoint.com/html5/html5_tutorial.pdf" style="width:500px; height:300px;"></iframe> </body> </html>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP