更改fb插件元素的css(高度)

时间:2013-05-24 12:12:06

标签: css

enter image description here

大家好我可以改变黑匣子的高度(给定图像中的黑色边框)。 我读到它是由fb控制的。 我尝试从firebug改变它的高度(320px)它在浏览器中做但我无法改变真正的css代码。我甚至尝试使用dom方法来访问div(class =“_ 4s7c”)在我的情况下但是失败了.Is它真的,我们无法做任何事情。请建议我。谢谢

<style>
._4s7c{height:320px !important}
</style>

这是我在视图页面中所做的事情

    <div id="fb-root" style="background: #fff;"><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>`<fb:like-box href="http://www.facebook.com/EverestWomenTreksdotcom/" width="200"  show_faces="true" border_color="#FFFFFF" stream="false" header="false"></fb:like-box>
    </div>

我已经更改了iframe高度,但我需要更改框架中div的高度。

1 个答案:

答案 0 :(得分:0)

试试这个,

#facebookID iframe {
    height:300px !important;
}

#facebookID iframe[style] {
    height:300px !important;
}

使用html代码中的真实ID更改“#facebookID”。

相关问题