2011-12-08 9 views
0

내 사이트에서 좋아요 버튼의 너비를 변경하려고하지만 어떤 이유로 작동하지 않습니다. 나는 HTML5, iFrame 및 XFBML 버전을 시도했지만 모두 동일한 크기로 렌더링됩니다. 내가 뭘 잘못하고 있는지에 대한 아이디어가 있습니까? 코드는 다음과 같습니다.같은 버튼의 너비 변경

<!DOCTYPE HTML> 
<html xmlns:fb="http://ogp.me/ns/fb#"> 
    <head> 
    </head> 
    <body> 
    <div class="fb-like" data-href="http://www.facebook.com" data-send="false" data-layout="button_count" data-width="2000" data-show-faces="false"></div> 
    <fb:like href="http://www.facebook.com" send="false" layout="button_count" width="3000" show_faces="false"></fb:like> 
    <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com&amp;send=false&amp;layout=button_count&amp;width=1600&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:1600px; height:100px;" allowTransparency="true"></iframe> 
    <div id="fb-root"></div> 
    <script> 
     window.fbAsyncInit = function() { 
     FB.init({ 
      appId  : 'MY_ID', // App ID 
      status  : true, // check login status 
      cookie  : true, // enable cookies to allow the server to access the session 
      oauth  : true, // enable OAuth 2.0 
      xfbml  : true // parse XFBML 
     }); 

     // Additional initialization code here 
     }; 


(function(d, s, id) { 
    var js, fjs = d.getElementsByTagName(s)[0]; 
    if (d.getElementById(id)) return; 
    js = d.createElement(s); js.id = id; 
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; 
    fjs.parentNode.insertBefore(js, fjs); 
}(document, 'script', 'facebook-jssdk')); 
    </script> 
    </body> 
</html> 

답변

0

난 당신이 HTML5이 플러그인을 사용하시기 바랍니다 조언

<div class="fb-like" data-href="your_link_goes_here" data-send="true" data-width="450" data-show-faces="true"></div> 

감사합니다 ...

+0

주요 문제는 쇼가 거짓 직면하고 버튼 측면으로 증대없는 설정이다 –