Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
类似facebook的按钮文本对齐iframe javascript_Facebook_Button_Facebook Like_Text Alignment_Text Align - Fatal编程技术网

类似facebook的按钮文本对齐iframe javascript

类似facebook的按钮文本对齐iframe javascript,facebook,button,facebook-like,text-alignment,text-align,Facebook,Button,Facebook Like,Text Alignment,Text Align,我在我的网站上添加了一个类似facebook的按钮,但是文本对齐不会出现在右边。我不知道我该怎么做 下面是一个代码示例: <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.google.com&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;fon

我在我的网站上添加了一个类似facebook的按钮,但是文本对齐不会出现在右边。我不知道我该怎么做

下面是一个代码示例:

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.google.com&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>

在iframe元素的style属性中添加text align:right如何:

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.google.com&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="text-align: right; border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>