ddlevelsmenu 는 IE6 에서 select 와 충돌 하 는 해결 방법 [정리]
ddlevelsmenu. js 에 ddlevelsmenu. positionshim (this, submenu, dir, scrollX, scrollY) 이 있 습 니 다. 두 줄 의 코드 를 주석 하면 됩 니 다.
positionshim:function(header, submenu, dir, scrollX, scrollY){
//alert(dir)
if (header._istoplevel){
var scrollY=window.pageYOffset? window.pageYOffset : this.standardbody.scrollTop
var topgap=header._offsets.top-scrollY
var bottomgap=scrollY+this.docheight-header._offsets.top-header._dimensions.h
if (topgap>0){
this.shimmy.topshim.style.left=scrollX+"px"
this.shimmy.topshim.style.top=scrollY+"px"
this.shimmy.topshim.style.width="99%"
//this.shimmy.topshim.style.height=topgap+"px" //distance from top window edge to top of menu item
}
if (bottomgap>0){
this.shimmy.bottomshim.style.left=scrollX+"px"
this.shimmy.bottomshim.style.top=header._offsets.top + header._dimensions.h +"px"
this.shimmy.bottomshim.style.width="99%"
//this.shimmy.bottomshim.style.height=bottomgap+"px" //distance from bottom of menu item to bottom window edge
}
}
}
하위 메뉴 에서 팝 업 할 수 없 는 문 제 는 해결 되 지만 IE6 에서 DIV 에서 SELECT 를 덮 을 수 없 는 bug 가 나타 날 수 있 습 니 다. 다행히 이 bug 는 받 아들 일 수 있 는 범위 안에 있 습 니 다.
ddlevelsmenu 메뉴 에 오 른 해적선 은 인정 할 수 밖 에 없 었 다.
주: 본문 은 stu - acer 공간 에서 전 환 됩 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다른 사람의 웹사이트 편집: contenteditable 및 designMode그래도 우리가 그렇게 할 수 있다고 생각하는 것은 멋진 일입니다. 제가 강조하고 싶었던 일종의 관련 API가 실제로 몇 개 있기 때문에 오늘 그것을 가져왔습니다. contenteditable는 "true" 값이 할당...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.