我需要创建一个宽度为 100% 的单元格表,我需要一个相对宽度列和另外两个具有固定宽度的列。
我这样做是这样的:
table.setWidth("100%", true);
table.setColumnWidth(checkBoxColumn, 50, Unit.PX);
table.setColumnWidth(nameColumn, 35.0, Unit.PCT);
table.setColumnWidth(emailColumn, 65.0, Unit.PCT);
正如http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html中所说
在 FF 中运行正常,但在谷歌浏览器中,但我无法让它工作。
这就是我得到的http://www.under-code.com/cap-celltable.png
我怎样才能解决这个问题?有什么我做错了吗?