iframe引用b站视频失败?

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <title>Document</title>

</head>

<body>

    <iframe src="http://www.bilibili.com/blackboard/html5player.html?aid=14387031&cid=23475167" width="920" height="500" frameborder="no"></iframe>

</body>

</html>

iframe里面的地址直接输入到浏览器就可以看,但是用iframe引用就不显示,求解如何处理?


慕莱坞森
浏览 2084回答 2
2回答

GCT1015

我也发现这个问题了,之前还是可以的,而且直接访问这个地址是能打开视频的。现在我在console中发现了若干条如下的warningThe key "target-densitydpi" is not supported.Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.然后调试的Elements中的iframe播放器的div是空的<div id='bofqi'></div>。不知道是不是"target-densitydpi"这个引起写入dom失败之类的。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript