我刚开始使用WebDataRocks,似乎无法获得足够的高度来填充窗口。文档说它会(https://www.webdatarocks.com/doc/init-api-call),“透视表的高度,以像素或百分比为单位(默认为500)”。
下面的代码片段甚至不会呈现。
var pivot = new WebDataRocks({ container: 'wdr-component', height: 100%, beforetoolbarcreated: customizeToolbar, toolbar: true, report: {
如有任何建议,我们将不胜感激。
发布于 2021-09-07 15:03:28
若要以百分比设置透视表的高度,请使用字符串值。例如,
height: '100%'为了让透视表的高度填满窗口,父表的高度必须是100%。因此,添加以下CSS:
html {
height: 100%;
margin: 0;
}https://stackoverflow.com/questions/69056350
复制相似问题