iFrame not Loading some URL's but loading othe

2019-08-26 07:55发布

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

标签: html iframe
1条回答
Melony?
2楼-- · 2019-08-26 08:13

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.

查看更多
登录 后发表回答