델리마운트 위키

웹 브라우저별 알려진 버그 #

인터넷 익스플로러 #

  • 인터넷 익스플로러에서 객체의 배경이 투명하면 마우스 이벤트를 받지 못하는데, 자신보다 z-index가 낮은 객체중에 배경이 있는 객체가 있으면 그 객체와 겹치는 영역은 마우스 이벤트를 받습니다. 아래의 예제를 인터넷 익스플로러에서 확인해주세요. 무툴스(Mootools) 라이브러리가 필요합니다.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
    .Box {
        position: absolute;
        width: 200px;
        height: 200px;
        border: 1px solid #000;
    }
    #Hello {
        left: 10px;
        top: 10px;
        background-color: #bbf;
    }
    #World {
        left: 100px;
        top: 100px;
    }
</style>
<script type="text/javascript" src="vendor/mootools/mootools.js"></script>
<script type="text/javascript">
    window.onload = function() {
        document.addEvent( "mousedown", function( event ) {
            event = new Event( event );
            alert( event.target.id );
        } );
    }
</script>
</head>
<body>
    <div id="Hello" class="Box">
        Hello
    </div>
    <div id="World" class="Box">
        World
    </div>
</body>
</html>

파이어폭스 #

  • 부모 객체의 스타일에 position: absolute와 overflow: hidden 속성이 모두 있을 경우, 자식 객체의 offsetLeft 값이나 offsetTop 값이 부모의 border크기만큼 -가 됩니다. [http]파이어폭스 offsetLeft, offsetTop 버그

참고 #

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-09-04 15:45:01
Processing time 0.0404 sec