问题是你的代码是怎么写的?

解决方案 »

  1.   

    自己的代码:
    <td valign="top">
    <table id="orderDg" style="height:auto;width:250px;">  
            <thead >
                <tr>  
                     <th data-options="field:'fieldName',hidden:'true',width:0" >字段编码</th>
                     <th data-options="field:'selected'" >选择</th>
    <th data-options="field:'orderName'" >字段名</th>
    <th data-options="field:'orderFlg'" >排序</th>
                </tr>  
            </thead>
            
            <tbody >
            <s:iterator value="orderFields" id="searchMethodFieldRec" status="st">
    <tr>
    <td><input id="order_name_order_<s:property value="#st.index"/>" value="<s:property value="#searchMethodFieldRec.pageItemRec.pageItemFieldCode"/>"/></td>

    <td><input name="orderCheckbox" checked="checked" type="checkbox" value="order_<s:property value="#st.index"/>"/></td>
    <td><s:property value="#searchMethodFieldRec.pageItemRec.pageItemTitle"/></td>
    <td><select id="order_flg_order_<s:property value="#st.index"/>">
    <option value="1" <s:if test="#searchMethodFieldRec.smfIsOrderFlg==1"> selected="selected"</s:if>>升序</option>
    <option value="2" <s:if test="#searchMethodFieldRec.smfIsOrderFlg==2"> selected="selected"</s:if>>降序</option>
    </select>
    </td>
    </tr>
    </s:iterator>
            </tbody> 
    </table>
    </td>
      

  2.   

    楼主没有设置列宽,设置下就好了