排序时DT列会改变宽度的变化

发布于 2025-02-07 08:27:30 字数 224 浏览 2 评论 0原文

我正在使用FlexDashboard中的数据表,并且在对列进行排序时遇到了对齐问题。当我按某些列排序时,某些值比其他值更长,这导致列调整大小并使列标题与值不对准。

我尝试了几件事,例如autoWidth = t,将列宽度设置为具有width的特定大小,并以className ='将列中的值设置为中心。 DT中心',但问题仍然存在。

I am using a datatable inside a flexdashboard and am having alignment issues when sorting columns. When I sort by certain columns some of the values are longer than others which is causing the columns to resize and making the column headers become misaligned with the values.

I have tried several things such as autoWidth=T, setting the column width to a certain size with width, and centering the values in the columns with className = 'dt-center' but the issue is still persisting.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文