0

Facebook ページから垂直スクロールバーを削除したいのですが、以下のような多くのコードを試しましたが、何も機能しません。

キャンバスの高さを固定に設定しています。それが重要な場合、私はワードプレスを使用しています。

助言がありますか?

 <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 に答える