3

我想知道是否可以使列标题和正文的字体大小小于 p:datatable?

我不知道如何用 css 做到这一点。

4

1 回答 1

9

尝试这个,

将以下样式应用于 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

于 2013-06-24T07:07:00.553 回答