简体   繁体   English

GWT中的浏览器兼容性

[英]Browser Compatibility in GWT

My GWT project works well in Firefox 9.0.1, but in other browsers it doesn't, even I set this 我的GWT项目在Firefox 9.0.1中运行良好,但在其他浏览器中却没有,即使我设置了

<set-property name="user.agent" value="gecko1_8,ie8,safari,opera" /> 

in filename.gwt.xml filename.gwt.xml

Can anyone help me with this? 谁能帮我这个?

You can force Document mode to "Quirks", by writing the host page as follows: 您可以通过如下编写主机页面来将文档模式强制为“ Quirks”:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
  "http://www.w3.org/TR/html4/strict.dtd"> 
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> 
</head>
<body>
..

Two of my Gwt webapps work perfectly with the solution above. 我的两个Gwt Webapp与上述解决方案完美配合。 And here are notes from the official for your reference. 以下是官方的注释,供您参考。

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

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