简体   繁体   English

GWT应用程序未在IE中显示

[英]GWT application is not showing in IE

I have a GWT 2.6 app which works fine on every browser except in IE (IE11). 我有一个GWT 2.6应用程序,除了IE(IE11)之外,它在每种浏览器上都能正常运行。 I am compiling application for all browsers. 我正在为所有浏览器编译应用程序。 Using developer tools (console posts) i can see that application does load as it should be, but the page is blank and nothing is shown. 使用开发人员工具(控制台帖子),我可以看到应用程序确实按应有的方式加载,但是该页面为空白,未显示任何内容。 No error appears in console and there is only a warning... 控制台中没有错误出现,只有警告...

HTML1524: Invalid HTML5 DOCTYPE. HTML1524:无效的HTML5 DOCTYPE。 Consider using the interoperable form " <!DOCTYPE html> ". 考虑使用可互操作的形式“ <!DOCTYPE html> ”。 File: user, Line: 1, Column: 1 文件:用户,行:1,列:1

...concerning application HTML file. ...关于应用程序HTML文件。 I removed all Views and Widgets and left only basic view with some background and picture, and it still does not load properly only in IE. 我删除了所有“视图”和“小部件”,只留下了带有一些背景和图片的基本视图,并且它仍然仅在IE中无法正确加载。 I tried adding 我尝试添加

<meta http-equiv="X-UA-Compatible" content="IE=5,6,8,9" > 

to app html file but it doesn't make a difference nor does a Compatibility View settings and changing Document Type. 到应用html文件,但没有任何区别,兼容性视图设置和更改文档类型也没有关系。 I really do not care so much about app working in older IE versions, but >9 is preferable. 我真的不太关心在较旧的IE版本中运行的应用程序,但是> 9是更好的选择。

What am i missing here? 我在这里想念什么?

EDIT: 编辑:

Actually the problem was having DockLayoutPanel in my View. 实际上问题出在我的View中有DockLayoutPanel。 Changed DockLayoutPanel into DockPanel and the application appeared (with some differences comparing to UI in other browsers). 将DockLayoutPanel更改为DockPanel并出现该应用程序(与其他浏览器中的UI相比有一些差异)。

Make sure that your html host page is properly formatted. 确保您的html主机页面格式正确。 It should start with the DOCTYPE declaration, followed immediately by <html> tag: 它应以DOCTYPE声明开头,紧随其后是<html>标记:

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM