2011-08-15 11 views
0

나는 페이스 북 코멘트 플러그인을 사용하고자하는 웹 사이트를 개발 중이며, 코멘트 'CSS를 사용자 정의하고 싶습니다. ASP.NET MVC 아키텍처를 사용하고 있으며 내 페이지에서 ViewData를 통해 fb : comments에 대한 href를 보내야합니다. 이 때문에 내 페이지의 div에 자바 스크립트를 사용하여 내 페이스 북의 덧글 태그를 추가하고 있습니다. 페이 스북 코멘트 커스터마이징

나는 http://www.daddydesign.com/wordpress/how-to-customize-the-facebook-comments-social-plugin-on-a-static-fbml-tab/ 를 참조하여 CSS을 정의하려고하지만 내 페이스 북의 코멘트 섹션에 적용되지 않는 CSS로 보인다. 다음과 같이

코드입니다 :

<script type="text/javascript"> 
$(function() { 
    Url = '<%=ViewData["Url"] %>'; 
    Xid = '<%=ViewData["Xid"] %>'; 
    document.getElementById('fb_comments') 
      .innerHTML = "<fb:comments href=" 
       + Url 
       +"num_posts=\"4\" xid=" 
       + Xid + " width=\"350\"></fb:comments>"; 

}); 
</script> 

<style type="text/css"> 
#fb_comments { 
width: 350px; 
float: left; 
font-family: Arial, Helvetica, sans-serif; 
color: #909090; 
min-height:850px; 
height:100%; 
background-color: #E8E8E8; 
} 

#fb_comments a { 
    color: #909090; 
} 

</style> 
</head> 
<body style="width:350px;"> 

<div>  
    <div id="fb-root">   
    </div> 
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"> 
    </script> 
    <div id="fb_comments">      
    </div>   
</div> 
</body> 
</html> 

사람은 도움을 주시기 바랍니다 수 있습니다!

감사합니다.

답변

0

comment by the post's author at the bottom을 참조하십시오.

안녕하세요, 우리는 더 이상 일반 페이스 북의 댓글을 스타일링 할 수 없습니다. 방법을 아는 분이라면 여기에서 공유하십시오.