在 DIV 或面板中显示 PDF 的最佳方式是什么

what is the best way to display PDF in DIV or panel

在 DIV 中显示 PDF 文件的最佳方式是什么。

我需要将生成的 PDF 显示到 jquery Accordian 选项卡的选项卡之一。

谁能指导一下什么是最好的移动方式。

试试这个

<div class="PDF">
   <object data="your.pdf" type="application/pdf" width="750" height="600">
       alt : <a href="your.pdf">your.pdf</a>
   </object>
</div>

我使用以下选项嵌入:

    <embed src="pdfFiles/interfaces.pdf" width="600" height="500" alt="pdf" pluginspage="http://www.adobe.com/products/acrobat/readstep2.html">

$obj = $('<object>');
$obj.attr("data","http://infolab.stanford.edu/pub/papers/google.pdf");
$obj.attr("type","application/pdf");
$obj.addClass("w100");

$("#pdfdiv_content").append($obj);
#pdfdiv_content{
 width:100%;
 height:250px;
 border:1px solid #0000FF;
 position:relative;
 height:800px;
}
.w100{
 width:100%;
 position:absolute;
 height:100%;
 }
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
<div id="pdfdiv_content"></div>