是否有可能在引导框架中证明文本的合理性?

scr*_*key 47 html css twitter-bootstrap

这可能是一个愚蠢的问题,但我确信我不是唯一一个疑惑的人.

我知道对齐类: <p class="text-center">Text Centered within the block element</p> <p class="text-right">Text aligned to the right within the block element</p> <p class="text-left">Text aligned to the left within the block element</p>

Twitters Bootstrap Framework中是否有一组用于证明文本合理性的类?

例如 <p class="text-justify">Sample Text Goes Here</p>

为什么看起来引导程序没有包含诸如text-align: justify?之类的实用程序功能?

Zol*_*tan 76

在Bootstrap 3中,您可以使用:

<p class="text-justify">Justified text.</p>
Run Code Online (Sandbox Code Playgroud)


小智 53

不.但是你可以在bootstrap.css上添加一个新类

.text-justify {
  text-align: justify;
}
Run Code Online (Sandbox Code Playgroud)

更新

以前版本的bootstrap不支持text-justify.但是bootstrap 3增加了一个类text-justify.