我尝试在GWT中找到特定Hack的当前浏览器.
喜欢:(观景级)
if( GWT.getBrowserName().contains("IE") ) {
// DOM.setElementPropertyBoolean( ... Hack
}else {
// normal stuff
}
最佳答案
我发现了一个丑陋的解决方案
@H_502_30@为每个bowser创建一个类并将其映射到gwt.xml中
public class BrowserIE6 extends Browser {
public boolean isIE6() { return true; }
public boolean isIE7() { return false; }
...
}
但是有一个简单的方法吗?