Twitter bootstrap 带Opa的引导-如何将文本居中?

Twitter bootstrap 带Opa的引导-如何将文本居中?,twitter-bootstrap,opa,Twitter Bootstrap,Opa,我正试图用Boostrap小部件创建一个简单的中心标题。我试过: WB.Layout.fixed( (WB.Grid.row([{span:16, offset:none, content:<div>title</>}])) ) WB.Layout.fixed( (WB.Grid.row([{span:16,偏移量:无,内容:title}])) ) 。。。但是文本只显示在行的左侧。我试图将“text align:center”添加到div标记中,但当我试图在浏

我正试图用Boostrap小部件创建一个简单的中心标题。我试过:

WB.Layout.fixed(
    (WB.Grid.row([{span:16, offset:none, content:<div>title</>}]))
)
WB.Layout.fixed(
(WB.Grid.row([{span:16,偏移量:无,内容:title}]))
)
。。。但是文本只显示在行的左侧。我试图将“text align:center”添加到div标记中,但当我试图在浏览器中显示结果时,它导致了一个xml错误。如何表示我希望“标题”显示在块的中心


提前感谢。

您正在使用哪个版本的引导

下面是一个示例代码:

import stdlib.themes.bootstrap
import stdlib.widgets.bootstrap

WB = WBootstrap

function start() {
  WB.Layout.fixed(
    (WB.Grid.row([{span:12, offset:none, content:<center>title</center>}]))
  )
}

Server.start(
   Server.http,
   { page: start
   , title: "Hello, world"
   }
)
导入stdlib.themes.bootstrap
导入stdlib.widgets.bootstrap
WB=WBootstrap
函数start(){
WB.Layout.fixed(
(WB.Grid.row([{span:12,偏移量:无,内容:title}]))
)
}
Server.start(
Server.http,
{第页:开始
,标题:“你好,世界”
}
)

我使用了
span:12
,因为当前版本的引导最多有12列。

谢谢,它起作用了。我投了16分,因为我(再次)被bootstrap.opalang.org误导了。