在div中显示Adobe pdf [英] Display Adobe pdf inside a div
本文介绍了在div中显示Adobe pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个用户必须看到的pdf文件,然后点击我同意按钮。
如何在div中显示pdf?
解决方案
是的,您可以。
请参阅2007年以下主题中的代码: DIV内的PDF
< div>
< object data =test.pdftype =application / pdfwidth =300height =200>
alt:< a href =test.pdf> test.pdf< / a>
< / object>
< / div>
它使用< object>
,它可以使用CSS来设计样式,因此您可以将它们浮动,给它们边框等。
(最后,我编辑了我的pdf文件以删除较大的边框并将其转换他们到JPG图像。)
I have a pdf file that the user has to see and click on the "I agree" button. How do you display a pdf inside a div?
解决方案
Yes you can.
See the code from the following thread from 2007: PDF within a DIV
<div>
<object data="test.pdf" type="application/pdf" width="300" height="200">
alt : <a href="test.pdf">test.pdf</a>
</object>
</div>
It uses <object>
, which can be styled with CSS, and so you can float them, give them borders, etc.
(In the end, I edited my pdf files to remove large borders and converted them to jpg images.)
这篇关于在div中显示Adobe pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文