【问题标题】:iframe in Smarty (tpl)Smarty 中的 iframe (tpl)
【发布时间】:2022-06-22 03:39:33
【问题描述】:

我有这个 iframe html 代码

<iframe title="Sales-AdventureWork - Page 5" width="100%" height="100%" src="https://app.powerbi.com/view?r=eyJrIjoiOWFjOWZjYjAtY2RmYi00OGYxLTg2ZWYtNjQ5NjJkN2E5ODAzIiwidCI6ImUwYjNmMTA2LWU2Y2QtNDNjOS05NGUxLTRkMzMwMWNjZWMzOCIsImMiOjl9" frameborder="0"  scrolling="no" allowFullScreen="true"></iframe>

来自 power bi,它在 html 页面中运行良好,但是当我尝试将其嵌入 smarty tpl 文件时,它会显示部分视图,如 pic num 1

但相同的代码在 html 中运行良好,例如 pic num 2

【问题讨论】:

    标签: html iframe powerbi smarty react-fullstack


    【解决方案1】:

    高度不能为 100%。应该是一个静态数字。

    【讨论】:

    • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多