IE8 中带有 richFaces 和 JSF 空文本节点的渲染问题

发布于 2024-09-19 09:20:07 字数 509 浏览 3 评论 0原文

我有以下类型的表格:

<rich:dataList var="var" value="#{bean}" styleClass="styleClass"><h:form>
 <h:commandLink value="#{var.prop}" action="#{bean.action}">
      <a4j:actionparam name="var" value="#{var.id}" assignTo="#{bea.sel}" />
 </h:commandLink>

现在,这在 Firefox 和 IE 7 中一切正常。但是,在 IE 8 中,它会在链接之前创建空文本节点。我尝试用 css 修复它。

form {
   display: block;
   zoom : 1;
}

这确实有助于在 IE 7 中正确渲染它。但是,空文本节点仍然会导致 iE 8 出现问题。

I have a form of the following type:

<rich:dataList var="var" value="#{bean}" styleClass="styleClass"><h:form>
 <h:commandLink value="#{var.prop}" action="#{bean.action}">
      <a4j:actionparam name="var" value="#{var.id}" assignTo="#{bea.sel}" />
 </h:commandLink>

Now, this is all fine in Firefox and IE 7. However, in IE 8 it creats empty text-nodes just before the link. I tried fixing it with the css.

form {
   display: block;
   zoom : 1;
}

This did help to render it correctly in IE 7. However, the empty text nodes are still created an cause problems with iE 8.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

肩上的翅膀 2024-09-26 09:20:07

我也有同样的问题。删除 display: block; 应该可以解决您的问题。当它被标记为块时,IE 将其转换为空文本节点。

I had the same problem. Removing display: block; should fix the issue for you. IE turns this into an empty text node when it's marked as a block.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文