【问题标题】:rich:tooltip not correctly displayed in IE(9)rich:tooltip 在 IE(9) 中未正确显示
【发布时间】:2013-10-25 12:04:57
【问题描述】:

我为 h:selectOneRadio 设置了一个工具提示,它在 FF 和 Chrome 中正确显示,但在 IE(9) 中没有。 在后一种情况下,会出现一个工具提示,它超出了页面的左边距,正好到了页面的右边距。

这是它在 FF/Chrome 中的显示方式:

在 IE 中

代码如下:

<tr>
  <td>
    <h:outputLabel value="#{msg.subscriptionFormFieldSubscriptionType}:" />
  </td>
  <td>
    <h:selectOneRadio id="subscriptionType"
                      value="#{detailModel.afterObject.subscriptionType}"
      <f:selectItems value="#{detailModel.subscriptionTypeValues}" />

      <rich:tooltip id="tt1" styleClass="tooltip" for="detailForm:subscriptionType" layout="block" >
        <span style="white-space: nowrap">
          <h:outputText value="#{msg.subscriptionToolTipForSubscriptionType}" escape="false"/>
        </span>
      </rich:tooltip>
    </h:selectOneRadio>
    <h:messages for="subscriptionType" style="color:red; font-size:12px;" />
  </td>
</tr>

我以 Richfaces 展示示例(在 IE 中也可以正常工作)作为示例,所以我不知道问题出在哪里。有什么想法/提示吗?

如果需要更多信息,请告诉我。

【问题讨论】:

    标签: jsf-2 richfaces tooltip


    【解决方案1】:

    发现问题:layout="block" 导致了问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-20
      • 2012-11-05
      • 1970-01-01
      • 2017-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多