各位好:
请问在YII2.0中怎样可以使用流式布局呀,我如下部分所写:
<?php $this->beginBody() ?>
<div class="container-fluid">
<div class="row-fluid">
<div class="span4">
<h1>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq</h1>
</div>
<div class="span8">
<h1>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaqqqqqqqqqqqqqqqqq</h1>
</div>
</div>
</div>
<?php $this->endBody() ?>
没有反应呀,为什么呢?
你想要写好bootstrap,可以到这里去学习:http://v3.bootcss.com
你写的称为栅格系统,自从升到 bootstrap v3 版本已经不支持 span*
的写法了,取而代之的是用类似 .col-xs-*
、col-md-*
这种预定义的类,来快速创建栅格布局。
比如,你应该将 row-fluid
改为 row
,并且将 span4
改为 col-md-4
,span8
改为 col-md-8