gpt4 book ai didi

jquery - 子菜单与 IE 11 中的主菜单重叠

转载 作者:行者123 更新时间:2023-11-28 07:53:43 25 4
gpt4 key购买 nike

最近我们从 IE 9 升级到 IE 11。菜单栏被禁用,所以当我在企业模式下打开时,菜单栏开始工作,但子菜单与主菜单栏重叠。

子菜单代码

menubar.prototype=new menu();
menuitem.prototype.showsubmenu=function(bDelayed)
{
var sm=this.submenu();
var pm=this.parentmenu();
if(sm && !this.disabled)
{
pm._abouttoshowsubmenu=true;
var oThis=this;
sm._showTimer=window.setTimeout("eventListeners.menuItem.onshowtimer(\""+this.id+showtimeout)");
}
}

menuitem.prototype.tohtml.funcyion()
{
var cssClass=this.getcssClass();
var tooltips=this.gettooltips();
return <tr> ("cssClass!= ""? "\cssClass :"") +
("tooltips!= ""? "\tooltips:"") +
(!this.styles="" "display:none: "") +
">"+
}

Menuitem.prototype.positionSubmenu=function()
{
var dir=this.submenudirection;//its vertical
var e1=this._htmlelement;
var useInsets=this._useInsets;
var sm=this.submenu;
var oThis=this;
if(!sm._iscssfileloaded())
{
window.setTimeout("eventListeners.menuItem.onpostionsubmenutimer(\""+this.id+showtimeout)");
return;
}
var rect={
left:posLib.getscreenleft(e1),
top:posLib.getscreenTop(e1),
width:e1.offsetwidth,
height:e1.offsetheight,
};
var menurect={
left:sm.getleft(),
top:sm.gettop(),
width:sm.getpreferredwidth(),
height:sm.getpreferredheight(),
insetleft:useinset?sm.getinsetleft():0,
insetright:useinset?sm.insetrightt():0,
insettop:useinset?sm.getinsettop():0,
insetbottom:useinset?sm.getinsetbottom():0

var scrollBefore=sm._scrollingMode;
sm.show(left,top,width,height);
if(sm._scrollingMode!=scrollBefore)
this.positionSubmenu();
};
}

menubar.prototype.getLeft=function()
{
return poslib.getscreenleft(this._htmlelement);
}

menubar.prototype.gettop=function()
{
return poslib.getscreenleft(this._htmlelement);
}

menubar.prototype.getinsetLeft=function()
{
return parseint(this._htmlelement.currentstyle.borderleftwidth);
}

menubar.prototype.getinsettop=function()
{
return parseint(this._htmlelement.currentstyle.bordertopwidth);
}

menubar.prototype.getinsetbottom=function()
{
return parseint(this._htmlelement.currentstyle.borderbottomwidth);
}

menubar.prototype.getinsetright=function()
{
return parseint(this._htmlelement.currentstyle.borderrightwidth);
}

如果有人知道或有什么建议,请回复?

最佳答案

是的,您是对的,html 函数有一些问题。我改变了逻辑并且它工作正常。感谢您的建议

关于jquery - 子菜单与 IE 11 中的主菜单重叠,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30245306/

25 4 0