简体   繁体   English

primefaces datatable宽度不呈现良好

[英]primefaces datatable width not rendering good

When I use a datatable and start shrinking my browser window, the datatable has a weird behavior. 当我使用数据表并开始缩小浏览器窗口时,该数据表的行为很奇怪。 The center part (where the data is), doesn't shrink but the paginator does. 中心部分(数据所在的位置)不会收缩,但分页器会收缩。

Here are some pics about the problem. 这是有关该问题的一些照片。

Thanks in advance. 提前致谢。 正常行为问题

It's because it can't break up the titles in your table header. 这是因为它无法拆分表标题中的标题。 If you would place spaces in between instead of using capital letters, it would break the title up and divide it over multiple lines. 如果您要在其间放置空格而不使用大写字母,则会破坏标题并将其分成多行。

If you don't have access to the table header's name (or the ability to change it), take a look at the word-wrap -property in CSS. 如果您无权访问表头的名称(或更改它的能力),请查看CSS中的word-wrap- property。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM