EasyUI中tab内嵌Datagrid导致列不显示的问题

RT
在某个标签页中内嵌一个Datagrid,列直接不显示,而不内嵌在Tab中的就可以正常显示,这是为何?
' <div title="附件上传" style="padding: 10px;text-align: center;position:relative;">

    <div style="border: 1px solid grey;width: 100%;height: 95%">
        <table class="easyui-datagrid" title="附件列表" style="width:95%;height:350px;margin: auto"
               data-options="singleSelect:true">
            <thead>
            <tr>
                <th data-options="field:'itemid',width:80">Item ID</th>
                <th data-options="field:'productid',width:100">Product</th>
                <th data-options="field:'listprice',width:80,align:'right'">List Price</th>
                <th data-options="field:'unitcost',width:80,align:'right'">Unit Cost</th>
                <th data-options="field:'attr1',width:250">Attribute</th>
                <th data-options="field:'status',width:60,align:'center'">Status</th>
            </tr>
            </thead>
        </table>
    </div>'

显示效果为

clipboard.png

阅读 2.2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进