width=100%不行 但auto可以
<table class="easyui-datagrid" style="width:auto; height: 450px; padding: 5px" toolbar="#toolbar" rownumbers="true" fitcolumns="true"
singleselect="false">
</table>
本文介绍了一个关于使用EasyUI框架中Datagrid组件的问题:当尝试将表格宽度设置为100%时遇到的问题及解决办法。文章指出,直接设置width为100%不起作用,而使用auto则可以成功实现预期效果。
width=100%不行 但auto可以
<table class="easyui-datagrid" style="width:auto; height: 450px; padding: 5px" toolbar="#toolbar" rownumbers="true" fitcolumns="true"
singleselect="false">
</table>

被折叠的 条评论
为什么被折叠?