如何在primefaces中设置工具提示的最大宽度?

问题描述:

如何在primefaces中设置工具提示的最大宽度?如何在primefaces中设置工具提示的最大宽度?

<p:tooltip for="#{c.id}_checkBox" value="#{c.tooltipText}"/> 

enter image description here

+0

哪一个? 'p:tooltip'或'pe:tooltip'? –

+0

This use p:tooltip – fdurmus77

+0

使用CSS? 'p:tooltip'具有'style'和'styleClass'属性。 – Miguel

      <style type="text/css"> 
          .ui-tooltip { 
            max-width: 400px; 
            white-space:pre-wrap; 
           } 
         </style>