有没有办法使用jQuery操纵Facebook页面插件?

时间:2017-05-15 08:30:31

标签: javascript jquery html facebook iframe

我在我的网站上使用Facebook页面插件。 FB页面插件的问题在于响应性。即使在尝试了这里建议的几个黑客之后,我也无法实现响应能力。

我在生成的iframe中看到了一个固定宽度为360px的元素。我试图使用jQuery编辑它们会引发以下错误。

VM30148 OoiHgnWq65g.js:41 Uncaught Error: <![EX[["Tried to get element with id of \"%s\" but it is not present on the page.","._2p3a"]]]>
    at h (VM30148 OoiHgnWq65g.js:41)
    at i (VM30148 OoiHgnWq65g.js:41)
    at <anonymous>:1:1

元素是:

<div class="_2p3a" style="min-width: 180px; width: 333px;">

是否有任何关于删除iFrame中元素的style属性的建议?

0 个答案:

没有答案