0

我想从我的 facebook 页面中删除垂直滚动条,尽管我尝试了很多代码,如下所示,没有任何效果。

我将画布高度设置为固定;我正在使用 wordpress,如果这很重要的话。

有什么建议么?

 <div id="fb-root"></div>
 <script type="text/javascript">  
   window.fbAsyncInit = function() {
    FB.init({
     appId: '0000000000000000', 
     status: true, 
     cookie: true, 
     xfbml: true
    });

    //this resizes the the i-frame 
    //on an interval of 100ms 
    FB.Canvas.setAutoResize(100);

   };
   (function() {
    var e = document.createElement('script');
    e.async = true;
    e.src = document.location.protocol + 
     '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);   
   }());

  </script>
4

1 回答 1

0

以下解决方案应该有效:

<style type='text/css'>
 #fb-root 
 {
    overflow-y:hidden;
    overflow-x:hidden;
 }
</style>
于 2013-10-31T13:41:47.130 回答