gpt4 book ai didi

html - 使flash成为html中的背景(全屏)

转载 作者:行者123 更新时间:2023-11-28 10:12:34 26 4
gpt4 key购买 nike

我制作了一个1920 * 1048的flash(16:9的屏幕),并将其嵌入到html中喜欢:

<div style="top:0;left:0;background-color:red;width:100%;height:100%;z-index:-10">
<iframe height="100%" width="100%" src="./img/bg.swf" frameborder=0 allowfullscreen> </iframe>
</div>

问题是:

在 4:3 屏幕中,flash 的宽度为 100%,但顶部和底部有白色填充。看来闪光灯必须保持宽高比。

有什么办法可以让flash在4:3屏幕和16:9屏幕下全屏吗?

或者像css语法:

background:url(...) center center

图像总是全屏显示,而在 4:3 屏幕下只显示图像的一部分。

最佳答案

尝试使用 * { margin: 0;填充:0; } 这应该可以修复它。您也可以为 body

执行此操作

关于html - 使flash成为html中的背景(全屏),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24333146/

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