开发者

FB like text-align: right instead of left

开发者 https://www.devze.com 2023-02-16 17:31 出处:网络
http://www.facebook.com/plugins/like.php?href={0}&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80
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}&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;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.

0

精彩评论

暂无评论...
验证码 换一张
取 消