我想知道为什么office表单不能完美嵌入到iframe中。
喜欢下面的代码
<iframe src="https://forms.office.com/Pages/ResponsePage.aspx?id=Ix5rlILy0USDoDcUdHBCThkWvcx4TptKrO0BZZzx9edUMzFRTDdOMTk1NThIMEs1WFFSNzBWNFdFUi4u" style="height: 300px;">
<p>Have you completed the survey?.</p>
</iframe>
https://jsfiddle.net/n7e3wv6v/
它只显示弹出链接,用户必须点击链接然后在弹出页面上填写问题,不方便。
有没有办法嵌入整个表单?
最佳答案
让iframe的高和宽>=350。
<iframe src="https://forms.office.com/Pages/ResponsePage.aspx?id=Ix5rlILy0USDoDcUdHBCThkWvcx4TptKrO0BZZzx9edUMzFRTDdOMTk1NThIMEs1WFFSNzBWNFdFUi4u" height="350" width="350">
</iframe>
这行得通!低于 350 维则不会。 https://jsfiddle.net/qnsj1k3o/2/
关于html - 通过 iframe 嵌入 office 表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49401702/