gpt4 book ai didi

javascript - Google Chrome - 使用 iframe 和 youtube 时在 Windows 下崩溃,但在 Linux 中不会崩溃相同的代码

转载 作者:行者123 更新时间:2023-11-28 01:18:51 24 4
gpt4 key购买 nike

相同的代码,相同的 Google Chrome 版本。在 Linux 下,Google Chrome 可以正常工作,但在 Windows 下,Google Chrome 会崩溃。使用 30 台 Windows PC 进行测试时均崩溃,使用 10 台 Linux PC 进行测试时均使用相同的代码运行。

如何解决?

enter image description here

<div id="video_window" class="video_window" style="
">
<div style="font-size: 18px;color:white;text-align: right;
padding-right: 5px;
padding-top:2px;
font-weight: bold;cursor: pointer;">X</div>

<iframe id="video_one" class="video_frame" style="z-index: 0;" width="800" height="600"
src="http://www.youtube.com/embed/asdfasfdsf-Q?rel=0"
frameborder="0" allowfullscreen></iframe>

<iframe id="video_two" class="video_frame" style="z-index: 0;" width="800" height="600"
src="http://www.youtube.com/embed/asdfafasfdsf?rel=0"
frameborder="0" allowfullscreen></iframe>



</div>

最佳答案

正如您所见,相同的代码块在 Windows 8 下运行的“Chrome 版本 35.0.1916.114”中运行。也许还有其他问题。

<div id="video_window" class="video_window" style="">  
<div style="font-size: 18px;color:white;text-align: right;
padding-right: 5px;
padding-top:2px;
font-weight: bold;cursor: pointer;">X</div>

<iframe id="video_one" class="video_frame" style="z-index: 0;" width="800" height="600"
src="https://www.youtube.com/embed/-hffP2vr1Jk"
frameborder="0" allowfullscreen></iframe>

<iframe id="video_two" class="video_frame" style="z-index: 0;" width="800" height="600"
src="https://www.youtube.com/embed/RNOM8ei08pc"
frameborder="0" allowfullscreen>
</iframe>
</div>

输出:

Screenshot:1 Screenshot:2

关于javascript - Google Chrome - 使用 iframe 和 youtube 时在 Windows 下崩溃,但在 Linux 中不会崩溃相同的代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23475023/

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