iFrame不加载一些URL,但加载其他URL [英] iFrame not Loading some URL's but loading others

查看:140
本文介绍了iFrame不加载一些URL,但加载其他URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我很困惑......所以我去了w3Schools的iFrame页面。将这些代码直接从w3schools复制并粘贴到codepen ...
$ b $ p $ lt; code>< iframe src =https://www.w3schools.com >< / iframe>



我也曾尝试更改网址几次。载入Google甚至无法正常工作......发生的只是一个空白页面,其页面背景颜色与父页面相同。我不明白为什么iframe代码甚至从w3schools不起作用...我不加载依赖项?



index.html

 < html lang =en> 
< head>
< meta charset =UTF-8>
< title> Soundcloud Downloader< / title>
< / head>
< body>

< div class =container>
< iframe src =http://1stdibs.com/>< / iframe>
< iframe src =http://soundtake.net/>< / iframe>
< iframe src =https://www.w3schools.com>< / iframe>
< / div>
< / body>
< / html>

工作代码笔:

< a href =https://codepen.io/anon/pen/GEePEK =nofollow noreferrer> https://codepen.io/anon/pen/GEePEK



我的观点(截图):
http://imgur.com/a / 6bPWB

解决方案

检查这一个
检查网站是否不允许iframe嵌入,并且这也是某些网站不会与Iframe和.load()函数一起出现
几年前我遇到过同样的问题,然后我通过这些,一些网站避免了iframe标签。


So, I'm confused pretty severely... So I went to w3Schools iFrame page. Copy and pasted this code into codepen directly from w3schools...

<iframe src="https://www.w3schools.com"></iframe>

I also tried changing the URL a few times. Loading Google even didn't work... All that happens is a blank page with the same background color as the parent page. I dont understand why the iframe code even from w3schools doesn't work... Am i not loading a dependency? I'm using the latest version of chrome.

index.html

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Soundcloud Downloader</title>
</head>
<body>

    <div class="container">
        <iframe src="http://1stdibs.com/"></iframe>
        <iframe src="http://soundtake.net/"></iframe>
        <iframe src="https://www.w3schools.com"></iframe>
    </div>
</body>
</html>

A working code pen:

https://codepen.io/anon/pen/GEePEK

My view (screenshot): http://imgur.com/a/6bPWB

解决方案

Check this one Checking if a website doesn't permit iframe embed and this one too Certain websites won't appear with Iframe and .load() function. I had same problem few year back then i came through these,some sites avoid iframe tag.

这篇关于iFrame不加载一些URL,但加载其他URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆