FB like text-align: right instead of left
http://www.facebook.com/plugins/like.php?href={0}&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80
I am using iframe.
whole code:
string iframe = string.Format("<iframe src=\"http://www.facebook.com/plugins/like.php?href={0}&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:450px; height:35px; text-align:right;\" allowTransparency=\"true\"></if开发者_Python百科rame>", fullUrl);
return iframe;
problem i have is that text is positionibg left instead of right
this works for me
<iframe src="http://www.facebook.com/widgets/like.php?href=<?php echo('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>" scrolling="no" frameborder="0" style="border:none; width:450px; height:80px; background-color:#CCCCCC"; align="right"></iframe>
Well ofcourse it is. You cannot specify text-align for a iframe. You have to do it within the document that is included in the iframe.
精彩评论