gpt4 book ai didi

css - WebDataRocks 高度百分比不起作用

转载 作者:行者123 更新时间:2023-12-04 17:13:32 25 4
gpt4 key购买 nike

我刚开始使用 WebDataRocks,似乎无法获得填充窗口的高度。文档说它会( https://www.webdatarocks.com/doc/init-api-call ),“以像素或百分比为单位的数据透视表的高度(默认为 500)”。
下面的代码片段甚至不会呈现。
var pivot = new WebDataRocks({
container: 'wdr-component',
height: 100%,
beforetoolbarcreated: customizeToolbar,
toolbar: true,
report: {
任何建议,将不胜感激。

最佳答案

要以百分比设置数据透视表的高度,请使用字符串值。
例如,

height: '100%'
为了使数据透视表的高度填满窗口,父级的高度必须为 100%。因此,添加以下 CSS:
html {
height: 100%;
margin: 0;
}

关于css - WebDataRocks 高度百分比不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69056350/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com