右对齐的Facebook像按钮 [英] Right align Facebook like button
本文介绍了右对齐的Facebook像按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我能够把Facebook的喜欢按钮,在我的网站,但我怎么做它是右对齐在 DIV
/ IFRAME
这是?
I am able to put a Facebook like button on my website, but how do I make it to be right-aligned within the div
/iframe
it is in?
我尝试运用各种CSS属性,但我无法得到任何在iframe移动。
I tried applying various CSS properties, but I could not get anything to move in the iframe.
推荐答案
IFRAME
是一个内联元素,你可以使用
iframe
is an inline element, you can use
text-align: right
对于包含iframe或浮动的iframe的权利,但只是一定要清除浮动之后,一个div
for a div that contains that iframe, or float the iframe to the right, but just make sure to clear the float afterwards.
示例: http://jsfiddle.net/Mujj6/3/
和: http://jsfiddle.net/Mujj6/5/
sample: http://jsfiddle.net/Mujj6/3/
and: http://jsfiddle.net/Mujj6/5/
这篇关于右对齐的Facebook像按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文