引用 I have verified that the problem is that the table is created with w:0px and h:0px when its parent has display:none. A way around this is to use visibility:hidden and toggle to visibility:visible instead of starting with display:none.