css
IE7 레이어 버그
aneyh.c
2013. 1. 24. 16:24
레이어를 겹쳐서 깔 경우에
아래 깔린 레이어에 position 속성이 들어가있을땐 레이어 위를 뚫고 올라오는 버그.
해결책은,
레이어가 열리고 닫힐때 position 속성을 재지정해준다.
아래 예시에서는 position:static 으로 했지만
가능하면 position 값을 없애고
z-index:-1 등으로 조절해도 OK.
[ex]
$(".mn1").mouseover(function (e) {
$(".smn01").show();
$(".prod_clr").css("position","static");
});
$(".sub").mouseleave(function () {
$(".sub").hide();
$(".prod_clr").css("position","relative")
return false;
});
[출처] 레이어 위로 올라오는 IE7 버그 - POSITION 문제..|작성자 배드걸