引导:将按钮文本向左移动 [英] Bootstrap : align button text left

查看:88
本文介绍了引导:将按钮文本向左移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在引导按钮中将文本对齐到左边?我有多个按钮,文本的长度不同,所有的按钮需要有相同的宽度。我已经使用类 col-xs-11 实现了这一点。

How can I align text to the left within a bootstrap button? I have multiple buttons with text of varying length, and all the button need to have same width. I have achieved this using the class col-xs-11.

下面的示例按钮代码:

<input type="button" value="Applicant/Subsidiary" id="mybutton" name="test" class="primary-btn col-xs-11">

是否可以实现这一点,而不创建自定义风格,除了bootstrap提供的?
我使用Bootstrap v3.0.1

Is it possible to achieve this without creating a custom style, other than what is provided by bootstrap? I'm using Bootstrap v3.0.1

推荐答案

只需添加 text-left class

just add text-left class

<input type="button" value="Applicant/Subsidiary" id="mybutton" name="test" class="primary-btn col-xs-11 text-left">

这篇关于引导:将按钮文本向左移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆