我有一个iframe,我想从侧栏的列表中打开pdf。
我已经完成了所有工作,但pdf显示在一个500×200的盒子上,并且不会“调整大小”以便用户可以阅读整个页面。
直播网站位于here http://www.markonsolutions.com/opportunities.php
,其背后的代码是
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>MARKON, Inc. - Professional Services, Personal Solutions</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="careers.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8011431-1");
pageTracker._trackPageview();
} catch(err) {}</script>
<div id="header"></div>
<div id="menu">
<ul>
<li><a href="index.html" accesskey="1">Home</a></li>
<li><a href="aboutus.html" accesskey="2">About Us</a></li>
<li><a href="capabilities.html" accesskey="3">Capabilities</a></li>
<li><a href="contracts.html" accesskey="4">Contracts</a></li>
<li><a href="careers.html" accesskey="5">Careers</a></li>
<li><a href="contactus.html" accesskey="6">Contact Us</a></li>
</ul>
</div>
<div id="content">
<div id="colOne">
<h2>Opportunities</h2>
<IFRAME SRC="newpage.html" width="100%" height="100%" id="iframe1" marginheight="0" frameborder="0" "></iframe>
</div>
<div id="colTwo">
<h2>Careers</h2>
<ul>
<li><a href="opportunities.html">Opportunities</a></li>
<li><a href="benefits.html">Benefits</a></li>
</ul>
<h2>Open Positions</h2>
<?php
$files = glob("./jobops/*.pdf");
sort($files);
//print("<br>"+count($files)+"<br>");
print("<ul>");
foreach ($files as &$file)
{
$Jobname =substr($file,0,strlen($file)-4);
$Jobname = str_replace("./jobops/","",$Jobname);
print("<li><a href=\"$file\" target=\"iframe1\">$Jobname</a></li>");
}
print("</ul>");
?>
</div>
<div style="clear: both;"> </div>
</div>
<div id="footer">
<p>Copyright © 2009 <a href="http://www.markonsolutions.com"><strong>MARKON, Inc.</strong></a></p>
</div>
</body>
</html>
答案 0 :(得分:1)
在渲染页面中显示的代码将高度设置为200px ...
<IFRAME SRC="newpage.html" width="100%" height="200px"...
并且newpage.html的呈现代码包含一个close div标签,但不包含div的开放标签。
您使用什么方法将文本从pdf填充到新页面?
答案 1 :(得分:0)
我上传了错误的版本!