iFrame not Loading some URL's but loading othe

2019-08-26 08:15发布

问题:

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

回答1:

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.



标签: html iframe