我想要建立一个模糊的预览文档。文档被上载到相同的域。文档可以是doc/docx/pdf。我用iframe
,embed
,object
尝试了这么多的解决方案。
<iframe src="URL" title="Embedded Document" style="width:100%; height:500px; border: none;"></iframe>
<iframe src="URL#toolbar=0" title="Embedded Document" style="width:100%; height:500px; border: none;"></iframe>
<embed src="URL">
<object data="URL"></object>
但没什么能达到我的要求。
任务:我想在网页上显示一个不可下载的文档预览。以上解决办法是,在我刷新网页时自动下载doc/docx文件。我想要一个模糊的预览文档,如这里:https://essaybatch.com/how-would-you-convene-and-run-your-meetings-if-you-are-based-in-the-united-states/和文件不应该自动下载。
客户端强烈声明了这一要求,因此我无法回避这个特性。您可以使用HTML、CSS、JS、PHP。
发布于 2020-01-09 10:20:56
下面是我实现它的方法:
.doc
文件的链接,因为这是一种安全风险。设置cookie。
https://stackoverflow.com/questions/59658702
复制相似问题