javascript - iframe 不显示任何内容

标签 javascript html iframe

我有 example.com 域的以下 iframe...该域没有 iframe block ,但也没有 iframe 出现。有人有主意吗?此代码之前可以运行:

<!DOCTYPE html>
<html>
<body>

<iframe src="//example.com” height="200" width="300"></iframe>

</body>
</html>

抱歉,这是一个简单的报价问题,已修复:

<!DOCTYPE html>
<html>
<body>

<iframe src="//example.com" height="200" width="300"></iframe>

</body>
</html>

我认为这可能与//example.com 有关,或者他们使用 stackoverflow 和 google 等 iframe block 进行了更新 我的想法是这样的:

<!DOCTYPE html>
<html>
<body>

<iframe src="//stackoverflow.com" height="200" width="300"></iframe>
<iframe src="//google.com" height="200" width="300"></iframe>
</body>
</html>

最佳答案

<!—-This is a simple " issue after example.com—->
<!DOCTYPE html>
<html>
<body>

<iframe src="//example.com" height="200" width="300"></iframe>

</body>
</html>

关于javascript - iframe 不显示任何内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46776453/

相关文章:

javascript - 我应该如何将此原型(prototype)移植到 JQuery?

javascript - 通过javascript设置iframe的window.external成员

jquery - 如何从图片缩略图源获取YouTube视频ID,并将其设置为iframe?

css - 不同屏幕上的网页

iframe - Youtube Javascript API : start parameter not working on replay

JavaScript数据结构: Set of page widths with associated values

javascript - 通过两个属性进行 HTML 搜索

javascript - jquery fadeIn(on)连续点击每个元素

javascript - HTML Canvas 通过鼠标单击绘制一个圆并拖动它,直到获得所需的半径

javascript - md-nav-bar 不渲染,仅显示纯文本