Embed website into my site

2019-02-06 21:56发布

问题:

What I am trying to do is embed a website into mine. When you search something on their page their embed site redirects through their pages though it will still be on my web page. Any help will be appreciated. I have partnered up with this site and they don't know how to do it themselves.

I am sorry if this is confusing. Here is a example if it helps

<html>//my site
<header>//my site
</header>//my site
<body>//my site
//where embed website is with their page redirects and search engine
</body>//my site
</html>//my site

When you search on their site or go to their pages link on their site. This should be like this in way.

<html>//my site
<header>//my site
</header>//my site
<body>//my site
//new page on the embed site after redirect
</body>//my site
</html>//my site

Any thoughts or places I can go help me figure this out.

回答1:

You can embed websites into another website using the <embed> tag, like so:

<embed src="http://www.example.com" style="width:500px; height: 300px;">

You can change the height, width, and URL to suit your needs.

The <embed> tag is the most up-to-date way to embed websites, as it was introduced with HTML5.



回答2:

Put content from other site in iframe

<iframe src="/othersiteurl" width="100%" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>


回答3:

You might want to check HTML frames, which can do pretty much exactly what you are looking for. They are considered outdated however.



标签: html embed