【问题标题】:spring roo(gvnix) not working in iespring roo(gvnix) 在 ie 中不起作用
【发布时间】:2016-01-31 19:12:13
【问题描述】:

我使用 spring roo(gvnix) 创建了一个简单的项目(创建用户)并部署在 tomcat7 中,在 chrome 和 microsoft edge 中浏览时它工作正常,但在 IE(11) 中浏览时。顶部固定菜单不显示。下面是我的 index.jspx 代码。

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" xmlns:util="urn:jsptagdir:/WEB-INF/tags/jquery/util" version="2.0">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <jsp:output omit-xml-declaration="yes"/>
    <spring:message code="application_name" htmlEscape="false" var="app_name"/>
    <spring:message arguments="${app_name}" code="welcome_titlepane" htmlEscape="false" var="title"/>

        <div class="jumbotron">
            <h1><spring:message arguments="${app_name}" code="welcome_h3"/></h1>
            <p><spring:message code="welcome_text"/></p>
        </div>

</div>

你能告诉我我哪里错了吗?

使用微软边缘

使用 ie(11)

【问题讨论】:

    标签: spring-roo gvnix


    【解决方案1】:

    我遇到了同样的问题并解决了。

    转到WEB-INF/layouts/default.jspx

    设置&lt;jsp:output doctype-root-element="html" doctype-system="about:legacy-compat"/&gt;

    而不是

    <jsp:output doctype-root-element="HTML" doctype-system="about:legacy-compat"/>
    

    和评论:

    <!-- <meta content="IE=8" http-equiv="X-UA-Compatible"/>  --> 
    

    如果这能解决问题,请告诉我

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-07
      相关资源
      最近更新 更多