如何在同一页面的iframe元素中显示word文件?

时间:2021-11-06 21:12:35
<html>
<iframe src="abc.doc" height="800px" width="600px">
</iframe>
</html>

How can i show word file in iframe element in same page ?

如何在同一页面的iframe元素中显示word文件?

3 个解决方案

#1


You could try:

你可以尝试:

<object src="abc.doc"><embed src="abc.doc"></embed></object>

#2


use this to create link to your document via office viewer

使用此选项可通过Office查看器创建指向文档的链接

office viewer

then add the url to your iframe.

然后将网址添加到您的iframe。

#3


Yup, Upload your doc file and link through Iframe This will work, as google doc viewer works same way.

是的,上传您的doc文件并通过Iframe链接这将起作用,因为谷歌文档查看器的工作方式相同。

#1


You could try:

你可以尝试:

<object src="abc.doc"><embed src="abc.doc"></embed></object>

#2


use this to create link to your document via office viewer

使用此选项可通过Office查看器创建指向文档的链接

office viewer

then add the url to your iframe.

然后将网址添加到您的iframe。

#3


Yup, Upload your doc file and link through Iframe This will work, as google doc viewer works same way.

是的,上传您的doc文件并通过Iframe链接这将起作用,因为谷歌文档查看器的工作方式相同。