我应该为GWT 2.0使用哪种文档类型? [英] Which doctype should I use for GWT 2.0?

查看:103
本文介绍了我应该为GWT 2.0使用哪种文档类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我应该为我的新GWT应用程序使用<!DOCTYPE html> ;我明白这样做会使我的应用程序进入符合标准的模式。我对么?使用这种文档类型有什么不利之处? GWT能否在符合标准的模式下正常工作?我很谨慎,因为 GWT教程仍然使用HTML 4.01过渡型文档。

I think I should use <!DOCTYPE html> for my new GWT application; I understand that doing so will put my application into standards-compliant mode. Am I correct? Are there any disadvantages to using this doctype? Does GWT work properly in standards-compliant mode? I'm wary because the GWT tutorial still uses the HTML 4.01 transitional doctype.

推荐答案

新的 layout panel 功能需要标准模式,并且不适用于怪癖模式。

The new layout panel functionality in GWT 2.0 requires standards mode and does not work in quirks mode.

这篇关于我应该为GWT 2.0使用哪种文档类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆