0

I want my website's homepage to show the same content as another page. I don't want it to redirect the URL, or to mask it. I'm aware of php include, but that'd mean the other page would have to link all it's files and images differently. Is there another way to do this?

4

3 回答 3

2

您只需使用 cURL PHP http://www.php.net/manual/en/book.curl.php即可做到这一点

于 2013-10-02T14:46:55.240 回答
1

您可以使用 iframe 或对象标记

<iframe src="http://www.google.com"></iframe>
于 2013-10-02T14:43:27.737 回答
0

框架集在 HTML5 中应该已经过时了,但也许它可以在这里提供帮助......

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
    <head>
    </head>
    <frameset framespacing="0" rows="0,*" frameborder="0" noresize>
        <frame name="top" src="_blank" target="top">
        <frame name="main" src="http://www.perdu.com" target="main">
    </frameset>
</html>
于 2013-10-02T14:52:41.543 回答