如何使用Bootstrap 3.3.4微调垂直对齐方式

问题描述

我有一个cshtml文件,该文件负责在屏幕的右上角彼此下方显示两个按钮。使用Bootstrap 3.3.4。 现在,我需要在第一个按钮的左侧添加文本,并设法使用下面的代码这样做,但是不存在任何垂直对齐方式,如下图所示:

text not nicely aligned with the button to the right of it

最好将一条不可见的线放到“第一个按钮”的底部边框上,以使“这是文本”降低。第二个选项是使文本相对于第一个按钮垂直居中,这也很好。如何使用Bootstrap 3.3.4完成此操作?

这是代码

<div class="pull-right">
    <button class="btn btn-default btn-xs" data-bind="click: $root.logout">
        <i class="fa fa-power-off"></i>
        <span data-bind="translate: 'button-logout'"></span>
    </button>
    <a class="btn btn-default btn-xs" href="@Url.Action("Index","Relations",new {Area = "Administration"})">
        <i class="fa fa-cog"></i>
        <span data-bind="translate: 'button-administration'"></span>
    </a>
</div>
<div class="pull-right">
    <span>This is the text&nbsp;</span>
</div>

谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...