且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用html在网页中显示PowerPoint演示文稿

更新时间:2023-02-14 23:32:42

您可以使用Google文档作为文档查看器.您只需要上传文件并将共享链接用作iframe src.

You can use Google Docs to serve as your document viewer. You just need to upload your file and use the share link as the iframe src.

您可以通过上传文件并在google docs(在本例中为Google幻灯片)中打开文件来获取嵌入代码,然后单击文件"标签,然后单击发布到网络.从那里您可以复制嵌入代码.确保文件是公开的!:)

You can get the embed code by uploading your file and opening it in google docs (in this case, Google Slides) then click the file tab and click the Publish to the Web. From there you can copy the embed code. Make sure that the file is public! :)

<iframe src="https://docs.google.com/presentation/d/17nlO95lz91-shRep16UiJl-3EAxv-MnOFH718ku2gtw/embed?start=false&loop=false&delayms=3000" frameborder="0" width="960" height="749" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>

<iframe src="https://docs.google.com/presentation/d/17nlO95lz91-shRep16UiJl-3EAxv-MnOFH718ku2gtw/embed?start=false&loop=false&delayms=3000" frameborder="0" width="960" height="749" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>

希望这会有所帮助!