排序时DT列会改变宽度的变化
我正在使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论