gpt4 book ai didi

html - DIV 中的 iFrame,高度/宽度为 100%

转载 作者:行者123 更新时间:2023-11-28 14:27:52 26 4
gpt4 key购买 nike

我想在 Content-DIV 中使用 iFrame 以避免一直加载导航。

是否可以在第二个 DIV 中包含全高/全宽的 iFrame?

<div style="position:fixed;width:190px;height:1500px;background:#951b24;float:left;z-index:1000;padding:25px>

Navigation

</div>

<div style="position:absolute;top:25px;left:265px;width:auto;height:auto">
Content
</div>

最佳答案

你是那个意思吗?

<div style="position:fixed;width:190px;height:1500px;background:#951b24;float:left;z-index:1000;padding:25px">

Navigation

</div>

<div style="position:absolute;top:25px;left:265px;width:calc(100% - 265px);height:100%;">
<iframe style="width: 100%; height: 100%;" src="https://www.youtube.com/embed/yfoY53QXEnI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>

关于html - DIV 中的 iFrame,高度/宽度为 100%,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54458301/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com