Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以使列标题和正文的字体大小小于 p:datatable?
我不知道如何用 css 做到这一点。
尝试这个,
将以下样式应用于 p:dataTable
style="font-size:8px;"
(或者)
覆盖styleclass font-size的默认值为12px;
<style> .ui-widget { font-size: 8px; } </style>
参考:http ://www.w3.org/TR/CSS2/cascade.html#important-rules