을 내가 레이아웃과 같이 있습니다DIV 규모는 가로 세로 비율을 유지하는
HTML
<div id="container">
<div id="zoomBox">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
</div>
CSS
#container { width:100%; }
#box { height:1000px;width:920px; }
는 내가 뭘하려고 오전 내 컨테이너를 확장하다 내용은 현재있는 가로 세로 비율을 유지하기 위해 사용됩니다. 지금은 transform: scale()
을 사용하고 gr 먹지 만 Internet Explorer에서 작동하는 심각한 문제가 있습니다.
이것은 지금까지 제 코드입니다. 누구든지 IE에서이 작업을 멋지게 만들기위한 다른 제안이 있습니까?
function zoomProject(percent)
{
$maxWidth = $("#container").width();
if(percent == 0)
percent = $maxWidth/920;
$("#zoomBox").css({
'transform': 'scale(' + percent + ')',
'-moz-transform': 'scale(' + percent + ')',
'-webkit-transform': 'scale(' + percent + ')',
'-ms-transform': 'scale(' + percent + ')'
});
}
http://stackoverflow.com/questions/7805870/css3-transformscale-in-ie 도움이 될 것입니다 – Gogol