gpt4 book ai didi

html - Youtube 嵌入式视频白色区域

转载 作者:太空宇宙 更新时间:2023-11-04 08:23:38 25 4
gpt4 key购买 nike

<div style="position: fixed; z-index: 1000; width: 100%; height: 100%">
<iframe frameborder="0" height="100%" width="100%"
src="https://www.youtube.com/embed/aQsy17K84Ls?autoplay=1&controls=0&showinfo=0&autohide=1&rel=0&showinfo=0&iv_load_policy=3">
</iframe>
</div>

当我使用上面的代码时,我在屏幕的左侧和底部出现了白色区域。我尝试了宽度和高度,但没有用。我怎样才能使视频完全全屏显示?

最佳答案

您的 html 正文插入它。您需要添加到您的 css 文件;

  html, body {
margin: 0;
padding: 0;
}

或者使用 Normalise 可能更好.

关于html - Youtube 嵌入式视频白色区域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45353567/

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