IE8 中带有 richFaces 和 JSF 空文本节点的渲染问题
我有以下类型的表格:
<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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有同样的问题。删除
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.