我的webapp中有一个对话框弹出框(使用带有Dojo的ArcGIS Javascript API)。在Firefox中,我得到一个正常运行的滚动条,但在IE中,有一个scrollabr但它不起作用...我可以向上/向下滚动浏览,但是当我这样做时,对话框会闪烁并结束。 ...有什么建议?谢谢,杰森
代码:
infoBox = new dijit.Dialog({
//title: "Information",
id: "info",
content: infoText,
style: "width: 450px; height: 380px; overflow: auto",
autofocus: !dojo.isIE, // NOTE: turning focus ON in IE causes errors when reopening the dialog
refocus: !dojo.isIE
//autofocus: false, // I tried this alternative, but it didn't help
//refocus: false
});
(在我的设置中,我有:meta http-equiv =“X-UA-Compatible”content =“IE = 7”,“IE = 9”/ )
答案 0 :(得分:1)
试试这段代码:
domStyle.set(infoBox.containerNode, {
position: 'relative'
});
在顶部添加以下代码 -
require(["dojo/dom-style"], function(domStyle){ domStyle.get(node, style); domStyle.set(node, style, value); });