gpt4 book ai didi

datatable - YUI 数据表宽度

转载 作者:行者123 更新时间:2023-12-02 14:08:32 25 4
gpt4 key购买 nike

这似乎是一个基本问题,但我无法弄清楚如何在 YUI 数据表上将表宽度设置为 100%。

我尝试过这样做

#dtContainer {
width: 100%;
}

#dtContainer table {
width: 100%
}

但是这些方法都不起作用。

为了澄清,当表为空并显示空消息时,我尝试将数据表宽度设置为 100%。

生成的表格是一个HTML表格;所以,我认为这应该可行。

最佳答案

不要使用 .yui-dt table { width:100%;} ,它似乎没有正确设置列宽。使用 myDataTable.setAttributes({width:"100%"},true);表格渲染后

关于datatable - YUI 数据表宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1580789/

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