简体   繁体   English

自举对齐网格

[英]Bootstrap aligning grids

Hi I am new to bootstrap and would like to be aliging elements in my grids. 嗨,我是新手,希望加入网格中的元素。

At http://getbootstrap.com/css/#type-alignment they explain how to align only text and only the text contained inside the (p) tag. http://getbootstrap.com/css/#type-alignment上,他们解释了如何仅对齐文本以及仅对齐(p)标记中包含的文本。 I was neither able to reproduce this with other elements such as buttons, nor with text in a simple (label) tag. 我既无法使用按钮等其他元素来复制此内容,也无法使用简单的(标签)标记中的文本来复制此内容。

Is this feature more flexible? 此功能更灵活吗? This seems like a really convenient and widely used feature it would be a pity if it only worked with text inside a (p) tag. 这似乎是一个真正方便且广泛使用的功能,如果仅使用(p)标记内的文本,将是一个遗憾。

您可以使用引导程序在任何div内使用css类来对齐任何元素,例如<div class="col-md-12 text-center">I'm center aligned</div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM