右对齐按钮 [英] Align Buttons Right
本文介绍了右对齐按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在建立一个网站,但是在页面右侧对齐一些按钮时遇到了一些小问题.
I am making a website and I'm having a small amount of problems with aligning some buttons to the right side of the page.
我尝试使用 text-align:right
和 float:left
.
任何人都可以尝试看看我在做什么错吗?
Can anyone try to see what I'm doing wrong?
它当前位于 http://biolinks.redxte.ch/
任何事情都很感激.
推荐答案
使用此
.button-parent {
text-align: right;
}
button {
display: inline-block;
}
或者如果您想使其绝对定位,则可以使用此
or if you want to make it position absolutely, you can use this
.add-me {
position: absolute;
right: 20px;
}
这篇关于右对齐按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文