日期:2014-05-17  浏览次数:20524 次

yii 表单 还可以是两列啊?
CHtml::beginForm 还可以分成两列输入啊? 类似以下
 
<table style="width:100%">
     <tr>
         <?php echo CHtml::beginForm('#', 'post', array('id' => 'my-form'));?>
         <td style="width:30%">
             <tr>
             </tr>
             <tr>
             </tr>
             <tr>
             </tr>
         </td>
         <td style="width:70%">
             <tr>
             </tr>
             <tr>
             </tr>
         </td>
         <?php echo CHtml::endForm(); ?>
     </tr>
 </table>
yii form

------解决方案--------------------
rowspan=3