开发者

How to show the external web page content in the iframe?

i am working on php site. i want to show t开发者_如何学Che web page content of external site in my site. Is there any solution to show only content of external site web page in my site.

Your solution will be appreciated. Thanks in advance.


There's no need for jQuery, CSS even PHP if the site isn't preventing itself from being iframed.

iframe simply works like this:

<iframe src="http://google.com" ...></iframe>

If the site is preventing being iframed, you may want to use file_get_contents, then display the data retrieved in a DIV or other non-iframe element.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜