div.layer를 # page1 외부에 -moz-transform과 같이 배치해야합니다. scale (.5); 그것에 적용됩니다.
<a href="#" id="zoom_in">Zoom In +</a> | <a href="#" id="zoom_out">Zoom Out -</a>
<div style="position:relative;">
<div style="-moz-transform:scale(.5); -moz-transform-origin:left top;position:absolute;" class="page" id="page1">
<div class="layer" style="z-index:1;">
<img src="http://cobalt.xtracta.com/images/image.jpg" style="width:2480px; height:3508px">
</div>
</div>
<div class="layer" style="z-index:2;">
<div style="font-size: 20px; position:absolute; color:#F00; top: 1550px; left: 306px;">For</div>
</div>
</div>
는
http://jsfiddle.net/dXNgx/2/
예, 20 픽셀 이제 적당한 크기에 대한 보인다. 그러나 "For"는 더 이상 올바르게 표시되지 않습니다. 'top : 1550px; 왼쪽 : 306px;가 올바르게 표시되어야합니다. 왜 "For"가 움직 였나요? – StackOverflowNewbie
전에 절대 위치 div에는 위치 관계형 부모가 없었습니다. 이것은 abs pos div가 신체와 관련하여 절대적이되도록했습니다. div.layer는 이제 주 div와 관련하여 절대 위치에 배치됩니다. 화면의 크기에 따라 다른 결과가 나올 수도 있지만, 현재 위치를 조정하면 모든 화면 크기에서 작동합니다. – sunn0