开发者

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

开发者 https://www.devze.com 2023-02-20 09:35 出处:网络
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.

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

精彩评论

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