Html 类似FB的文本对齐:右对齐而不是左对齐
我正在使用iframe 全部代码:Html 类似FB的文本对齐:右对齐而不是左对齐,html,facebook,Html,Facebook,我正在使用iframe 全部代码: http://www.facebook.com/plugins/like.php?href={0}&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80 string iframe=string.Format(“,fullUrl”); 返回iframe;
http://www.facebook.com/plugins/like.php?href={0}&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80
string iframe=string.Format(“,fullUrl”);
返回iframe;
我遇到的问题是,文本的位置是IBG left而不是right这适合我
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\"></iframe>", fullUrl);
return iframe;
当然是的。不能为iframe指定文本对齐。您必须在iframe中包含的文档中执行此操作。我尝试在div中添加文本对齐,但情况相同。您应该加宽放置此iframe的div或表的宽度和高度OK,然后减少iframe的宽度和高度。然后看看结果 <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>