【发布时间】:2016-03-02 13:35:10
【问题描述】:
我的意图是显示嵌入在 aspx 页面中的 PDF。为了与资源管理器和Firefox一起工作,我已经尝试在aspx中嵌入一个pdf几天,但由于某种原因在资源管理器中不起作用,所以我的第一步是创建一个html来执行测试。我的html是:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Preview</title>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
border: 0;
height: 100%;
overflow: hidden;
}
iframe {
width: 100%;
height: 100%;
border: 0;
}
</style>
</head>
<body>
<embed src="sample.pdf" width="500" height="375" type='application/pdf'>
</body>
</html>
在资源管理器中不起作用,而 firefox 则如此 我错过了什么?
【问题讨论】:
-
"explorer" 是“Microsoft Internet Explorer”的简写吗?如果有,是什么版本?你知道Microsoft is phasing out Internet Explorer吗?