0
當我使用「htmlOptions」 =>陣列(「類」 =>「表邊框的表格縮合」), 自定義類加入到包裝器DIV而不是表元素是否可以將自定義類添加到bootstrap.widgets.TbGridView的表元素中?
<div id="contact-grid" class="table-bordered table-condensed">
<div class="summary">Displaying 1-6 of 6 results.</div>
<table class="items table">
<thead>
<tr>
謝謝!
更新: 至於最終的結果,我需要如下:
<div id="contact-grid">
<div class="summary">Displaying 1-6 of 6 results.</div>
<table class="items table table-bordered table-condensed">
<thead>
<tr>
答:
<?php $this->widget('bootstrap.widgets.TbGridView',array(
'id'=>'contact-grid',
...
'itemsCssClass'=>'table-bordered table-condensed',
我需要自定義樣式僅添加到表格元素,像這樣的
您需要
itemsCssClass
:來源
2014-02-09 11:06:48 Michiel
謝謝爲你的答案。這給了我一個很好的方向。這是什麼起作用的小部件('bootstrap.widgets.TbGridView',數組('itemsCssClass'=>'table-bordered table-condensed', – user3051938
相關問題