0
나는 페이스 북 코멘트 플러그인을 사용하고자하는 웹 사이트를 개발 중이며, 코멘트 'CSS를 사용자 정의하고 싶습니다. ASP.NET MVC
아키텍처를 사용하고 있으며 내 페이지에서 ViewData를 통해 fb : comments에 대한 href를 보내야합니다. 이 때문에 내 페이지의 div에 자바 스크립트를 사용하여 내 페이스 북의 덧글 태그를 추가하고 있습니다. 페이 스북 코멘트 커스터마이징
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>
사람은 도움을 주시기 바랍니다 수 있습니다!
감사합니다.