私は同様の質問から多くのソリューションを試しましたが、私のページでは機能していないようです。これは私がスケールしたいコードです。もう少し薄い、gifの下に、行ごとに3つのボックスを保持したいと思うので、大きなウィンドウサイズに移動すると、ボックスの1つが上に移動するように見えます。それは「スケール」を作る以上にこのコードをさまざまなウィンドウサイズに拡大するにはどうすればよいですか?
<hmtl>
<body>
<style>
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
}
.item {
position: relative;
float:left;
border: 0px solid #333;
margin: 0%;
overflow: hidden;
width: 425px;
}
.item img {
max-width: 100%;
-moz-transition: all 1s;
-webkit-transition: all 1s;
transition: all 1s;
}
.item:hover img {
-moz-transform: scale(1.1);
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
</style>
<div class=“main”>
<img src="http://i.imgur.com/PbeUJ56.gif” style="position:absolute; top:0; left:0;" alt=“DESCRIPTION” height=“1280” width=“645”/>
<img src="http://imgur.com/JBWbug1.png" style="position:absolute; top:0; left:0;" alt=“DESCRITPION” height=“2000” width=“720” alt="" usemap="#Map" /><map name="Map" id="Map">
<area alt="" title="" href="" shape="poly" coords="208,42,47,41,41,132,211,132" />
<area alt="" title="" href="" shape="poly" coords="467,73,467,98,654,99,654,74" />
<area alt="" title="" href=" shape="poly" coords="683,73,685,98,855,97,855,77" />
<area alt="" title="" href="" shape="poly" coords="883,71,883,97,986,96,986,77" />
<area alt="" title="" href="" shape="poly" coords="1007,69,1007,95,1092,95,1091,79"/>
<area alt="" title="" href="" shape="poly" coords="1122,71,1122,100,1230,99,1230,71" /> </map>
<div id="zoom">
<div class="item">
<a href=""><img src="http://imgur.com/jM0ivPh.png" alt="img">
</div>
<div class="item">
<a href=""><img src="http://imgur.com/zMVcoiJ.png" alt="img">
</div>
<div class="item">
<a href=""><img src="http://imgur.com/aVdSekS.png” alt="img" >
</div>
<div class="item">
<a href=""><img src="http://imgur.com/MKjyo1I.png” alt="img" >
</div>
<div class="item">
<a href=""><img src="http://imgur.com/tpYHlOP.png” alt="img" >
</div>
<div class="item">
<a href=""><img src="http://imgur.com/kzy9T7h.png” alt="img" >
</div>
</div>
</div>
<html>
<body>