在iframe或框架中打开Facebook页面? [英] Open Facebook page in iframe or frame?

查看:155
本文介绍了在iframe或框架中打开Facebook页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想同时打开两个Facebook页面作为我的html页面的一部分。
所以当你去mypage.html时,会显示两个Facebook页面。这是可能的吗?

I want to have two facebook pages open at the same time as part of my html page. So when you go to mypage.html, there will be displayed two facebook pages. Is this possible?

我的东西像:

I get something like:

代码如下:

<frameset cols="25%,75%">



<iframe height="*" src="http://www.facebook.com/photo.php?fbid=10150277739848763&set=pu.105012493762&type=1&theater" width="100%">
    <p>Your browser does not support iframes.</p> </iframe>


推荐答案

Facebook阻止您直接链接到实际网站IFRAME(或任何帧)。这是因为将Facebook置于IFRAME(或任何框架)中的任何网站都可以使用Javascript访问Facebook页面的元素,包括用户名和密码字段。

Facebook prevents you from linking directly to the actual site via IFRAME (or any frame). This is because any site putting Facebook in an IFRAME(or any frame) could use Javascript to access elements of the facebook page, including username and password fields.

没有这个方法。它是内置到浏览器自己发送一些信息在请求头,说要求被放在框架。

There is no way around this. It is built in to the browsers themselves to send some information along in the request header that says it is being requested to be put in frame.

Gmail和其他几个网站做这也是。

Gmail and several other sites do this as well.

这篇关于在iframe或框架中打开Facebook页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆