【问题标题】:Support for IE7 browser using IceFaces使用 IceFaces 支持 IE7 浏览器
【发布时间】:2011-01-21 05:46:28
【问题描述】:

嗨,

我们使用带有 IceFaces 的 JSF 作为组件库。截至目前,该应用程序仅与 IE6 兼容。它不适用于任何其他浏览器。我们的客户端要求将浏览器兼容性更新为 IE7。我们想知道 IceFaces 中是否有任何配置更改以使其支持 IE7 浏览器或需要进行大量代码更改。

请给我你的建议。

更新

<?xml version="1.0" encoding="UTF-8" ?>

<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ice="http://www.icesoft.com/icefaces/component">

    <f:view>
        <ice:outputDeclaration doctypeRoot="HTML"
            doctypePublic="-//W3C//DTD XHTML 1.0 Transitional//EN"
            doctypeSystem="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
        <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=5" />
        <ice:outputStyle href="/xmlhttp/css/rime/rime.css" />
        <ice:outputStyle href="/css/hp.css" />
        <ice:outputStyle href="/css/body.css" />
        <script type="text/javascript" src="js/hp.js">
        </script>
        <script type="text/javascript" src="js/expandableSelectMenu.js">
        </script>
        </head>
        <body id="document:body">

        <ice:panelGroup id="headerImg">
            <div>   
                <jsp:directive.include file="/WEB-INF/jsp/include/header.jspx" />
            </div>          
        </ice:panelGroup>

        <ice:panelGroup id="headerImg01">
            <div>
                <jsp:directive.include file="/WEB-INF/jsp/xxxx_Head.jspx" />
            </div>
        </ice:panelGroup>

        <div class="rootDiv">
        <div class="bodyContainer">

<ice:form id="XXXX">

        <ice:panelGrid border="0" columns="1" style="margin-top:-8px;">

            <!-- xxxx-->
            <ice:panelGrid border="0" columns="2" style="margin-bottom:-8px;margin-top:-8px;" styleClass="contentPanelHeader">
            <ice:panelGroup style="width:10px;" styleClass="tabNoPanel">    
                        <ice:outputText  value="1" styleClass="panelHeaderNo"/>         
                    </ice:panelGroup>
                    <ice:panelGroup style="width:836px;">   
                        <ice:outputText  value="#{mes.producto}" styleClass="label20px"/>           
                    </ice:panelGroup>
            </ice:panelGrid>
            <ice:panelGrid border="0" columns="1" style="margin-top:-8px;margin-bottom:-4px;width:862px;" styleClass="contentPanel">
            <ice:panelGroup  style="width:862px;">
            <ice:panelGrid columns="1" border="0">

这是一段代码。我有以下疑惑:

  • 我们使用&lt;div&gt; 标签来放置组件。会不会影响浏览器的兼容性。

  • 听说有Floating Div问题。那是什么?有人说这是造成问题的原因。

  • 请检查代码,让我知道可能出了什么问题。

【问题讨论】:

    标签: jsf cross-browser icefaces


    【解决方案1】:

    您使用的是哪个版本的 Icefaces?

    我们使用 1.8.2,在 IE7/8 和 FF3+ 上进行了所有测试,我们从未遇到过任何重大问题(尽管偶尔会有一些 CSS 问题)。

    【讨论】:

    • 我们使用的是 IceFaces 1.8.2。我们发现在 IE6 以外的浏览器中显示无法正常工作
    • 你能从你的项目中发布一些示例代码吗?整个 jsp 或 jspx 文件
    • 目前还不清楚您所面临的“兼容性”问题。你真的需要
      标签吗?您在
      标记中放置的任何内容都将被视为 panelGrid 中的一个单元格
    • 我认为你的问题更多是关于 CSS
    • 我认为 Ali 的意思是它的自定义 CSS 导致了问题。我们使用了 IceFaces 和 RichFaces,它在 IE6+ 中没有任何问题
    猜你喜欢
    • 2012-04-10
    • 2019-07-30
    • 2012-02-14
    • 2010-11-24
    • 2015-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多