Ways to put one site inside another? [closed]

3

I'm studying the iframe tag in HTML5, I saw that with it we can put sites and videos within a page. However, I did some testing, with PHP and HTML files. The only way that succeeded in appearing the site I wanted was in the .html file and in the browser Edge .. What is the best way to deploy sites within another?

    
asked by anonymous 18.10.2017 / 04:04

1 answer

4

What you want is to include any site within yours. For this, the iframe tag should resolve implemented like this:

<iframe width="1024" height="768" src="http://www.bbc.com"style="-webkit-transform:scale(0.5);-moz-transform-scale(0.5);"></iframe>

And with something like this:

div {
    position: relative;
    width: 624px;
    height: 300px;
    overflow: hidden;
}
iframe {
    position: absolute;            
    top: -95px;
    left: -25px;
    width: 1024px;
    height: 768px;
}
Site externo ao meu:
<div>
    <iframe src="http://www.bbc.com/"scrolling="no" frameborder="no"></iframe>
</div>

It works better here , as the Stack does not allow the opening of the BBC website.

    
18.10.2017 / 12:48