【问题标题】:Using jQuery viewer pdf使用 jQuery 查看器 pdf
【发布时间】:2015-09-27 14:55:52
【问题描述】:

我需要使用 Jquery 脚本来使用 pdf 查看器。但是我不太了解jQuery,也不知道如何使用这个脚本。我使用什么代码来使用这个查看器 pdf? 我找到了这段代码,但我什么也没看到:

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$('a.media').media({width:500, height:400});
</script>
</head>
<body>
<script type="text/javascript" src="http://github.com/malsup/media/raw/master/jquery.media.js?v0.92"></script> 
<script type="text/javascript" src="jquery.metadata.js"></script> 

<a class="media" href="guice.pdf">PDF File</a> 
<a class="media {type: 'html'}" href="../">HTML File</a> 

</body>
</html>

我要在这段代码中进行哪些更改?或者我为使用 pdf 查看器的 jquery 脚本编写什么代码?请帮帮我

【问题讨论】:

    标签: javascript jquery pdf jquery-mobile jquery-plugins


    【解决方案1】:

    要显示来自其他服务器的 pdf,您可以在页面中嵌入 google pdf 查看器。

    <iframe src="http://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-01
      • 2012-12-13
      • 2011-05-25
      • 2011-10-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多