如何在Facebook上改变高度,如框小部件(iframe)?

时间:2012-07-15 20:11:45

标签: css facebook plugins

我正在尝试在我网站的侧边栏上更改facebook的框小部件的高度,但是我似乎无法弄清楚要执行此操作的目标css。我想将其更改大约200.这是当前使用的代码。有任何想法吗?

</div><div id="facebook-likebox-3" class="widget widget_facebook_likebox"><h4 class="Facebook Like Box widget-title"><a href="http://www.facebook.com/noahsdadcom">Like Us On Facebook</a></h4><iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fnoahsdadcom&#038;width=300&#038;height=432&#038;colorscheme=light&#038;show_faces=true&#038;stream=false&#038;header=false&#038;force_wall=false" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 300px; height: 432px; background: #fff"></iframe></div><div id="text-43" class="widget widget_text">            <div class="textwidget"><div id="cse-search-form" style="width: 100%;">Loading</div>

1 个答案:

答案 0 :(得分:2)

只需使用height<iframe>上设置!important

演示: http://jsfiddle.net/ThinkingStiff/TpZ9k/

#facebook-likebox-3 iframe {
    height: 200px !important;
    border-bottom: 1px solid #AAA !important;
}​