如何在 visualforce 页面中使文本对齐

How to make text justified in visualforce page

我在 visualforce 页面中添加了输出文本。但是,它左对齐但在右侧不对齐。如何使它像在word文档中一样对齐?

<apex:outputPanel layout="block" styleClass="row col-md-3 col-md-offset-4 col-xs-10 col-xs-offset-1">
<apex:outputText style="font-size:8pt;font-weight:bold;width:30;color:blue;" value="Some text"></apex:outputText>           
</apex:outputPanel>

为什么不

 text-align: right;

 text-align: justify;

不工作?