在网页中嵌入Powerpoint

时间:2011-08-18 00:25:21

标签: html powerpoint

有没有办法只使用标准标签等在HTML页面中嵌入PowerPoint幻灯片?我尝试使用iframe,但这只会导致PowerPoint被下载。

<iframe src="Chapter1.pptx">Your browser does not support.</iframe>

我正在寻找一种仅使用标准内容来展示幻灯片的方法。我意识到我可以使用谷歌文档或Flash或其他东西,但我宁愿有一个简单的实现。

网络是否不知道如何处理PowerPoint演示文稿?

10 个答案:

答案 0 :(得分:31)

简单明了......这是将任何Microsoft或Adobe文件嵌入HTML网站的最佳方法。

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[https://www.your_website/file_name.pptx]' width='100%' height='600px' frameborder='0'>

答案 1 :(得分:9)

只是为了更新这个问题 - 因为有一种在网页中嵌入Powerpoint的新方法。如果您在OneDrive上拥有帐户,请使用Powerpoint Online执行以下操作(通过浏览器访问Powerpoint)以嵌入Powerpoint:

  1. 点击文件&#39;然后点击&#39;分享&#39;然后点击&#39;嵌入&#39; Share Powerpoint
  2. 点击“生成”&#39;用于生成要嵌入的HTML代码的按钮Generate HTML
  3. 复制“嵌入代码”&#39;并将其粘贴到网站Copy Embed Code
  4. 的HTML中

答案 2 :(得分:3)

Web浏览器不了解功能点,但除了Flash之外还有其他解决方案。

您可以将其导出为HTML或PDF。或者您也可以上传到slideshare这样的网站,并使用针对此问题而构建的播放器。

答案 3 :(得分:3)

我决定采用黑客路线并将powerpoint上传到YouTube上,然后将iftube视频添加到iframe中。

<iframe height="375" width="600" src="http://www.youtube.com/embed/assignedId"></iframe>

我知道,这很便宜,但也很容易。

修改

我最终将我的网页检查为XHTML Strict,它不支持<iframe>标记。所以我使用了object代码。

<object data="http://www.youtube.com/embed/assignedId"> 

答案 4 :(得分:1)

使用Microsoft skydrive,将您的电源点上传到此站点并使用此代码

其中

http://skydrive.live.com/redir.aspx?cid=20f065afc1acdb2e&page=view&resid=20F065AFC1ACDB2E!723&parid=20F065AFC1ACDB2E!719是powerpoint文件的网址。

您必须将SD20F065AFC1ACDB2E!723替换为您自己的相应网址字符串

答案 5 :(得分:0)

为什么不使用prezi,我只是在工作中使用它,非常简单实用。

enter image description here

答案 6 :(得分:0)

我可以通过将PPT保存为mp4(另存为&gt; MPEG-4视频(* .mp4))然后使用视频标签来实现此目的。

<video controls autoplay preload="none" style="width:1000px;">
<source src="/_dev/power_point/m11983.mp4" type="video/mp4" />
<p>Your browser does not support HTML5 Video.</p>
</video>

答案 7 :(得分:0)

在您的Google云端硬盘上上传PowerPoint文档,然后与所有人“共享”(公开): Sharing your pptx doc

然后,依次转到“文件”>“发布到网络”>点击“发布”按钮。

转到“嵌入”并复制嵌入代码,然后将其粘贴到您的网页上

Copy embed code

答案 8 :(得分:0)

最适合我。

  1. 转到MS View Office Documents Online Page

  2. Enter link to PPT file 注意:该链接应该可以公开访问

  3. 单击创建URL。

  4. Link to view office documents online will be generated.

  5. 将此链接粘贴到任何网页或作为iframe src属性。

你们都准备好了!! :)

答案 9 :(得分:0)

我尝试了Shane发表的答案,该答案看起来非常正确,以及MS以前如何在线上查看PPT,但对我没有用。经过研究后,我发现链接有所改变。

因此使用: https://view.officeapps.live.com/op/ view.aspx 而不是 https://view.officeapps.live.com/op/ embed.aspx

示例:

<iframe src='https://view.officeapps.live.com/op/view.aspx?src=[https://www.your_website/file_name.pptx]' width='100%' height='600px' frameborder='0'>

注意:PPT的链接需要公开访问。