gpt4 book ai didi

java - GWT 中的浏览器兼容性

转载 作者:行者123 更新时间:2023-12-01 12:51:45 27 4
gpt4 key购买 nike

我的 GWT 项目在 Firefox 9.0.1 中运行良好,但在其他浏览器中则不然,即使我设置了此值

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

文件名.gwt.xml

有人可以帮我解决这个问题吗?

最佳答案

您可以通过按如下方式编写主页来强制文档模式为“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>
..

我的两个 Gwt Web 应用程序与上述解决方案完美配合。和here are notes from the official供您引用。

关于java - GWT 中的浏览器兼容性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24176836/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com