如何在primefaces中设置工具提示的最大宽度?
问题描述:
如何在primefaces中设置工具提示的最大宽度?如何在primefaces中设置工具提示的最大宽度?
<p:tooltip for="#{c.id}_checkBox" value="#{c.tooltipText}"/>
答
<style type="text/css">
.ui-tooltip {
max-width: 400px;
white-space:pre-wrap;
}
</style>
哪一个? 'p:tooltip'或'pe:tooltip'? –
This use p:tooltip – fdurmus77
使用CSS? 'p:tooltip'具有'style'和'styleClass'属性。 – Miguel