|
楼主 |
发表于 2009-4-22 17:24:16
|
显示全部楼层
如果我没看错的话,champs说用现在的class是可以做到:
http://codeigniter.com/forums/viewthread/46580/
Not that anybody wants my opinion, but the table class is only suitable for quick and dirty dumps of tabular data, much like scaffolding is for data entry. There’s a fine line betweeen being all things to all people and nothing for everybody, and the existing functionality already inches pretty close to that.
Here’s what could be in the class:
* colspans, rowspans, or combination
* Setting cell/row/table attributes, i.e. class
* Proper use of THEAD, TBODY, and TFOOT
* Rotate the input array to make columns into rows, and vice versa
* etc.
By the time you’ve mastered these functions to get the table as fancy as you’d like it, you could have just written the table in a view—and as presentation logic, you probably should, anyway. |
|