私は通常質問する人ではありませんが、CSS/CSS3 を使用してこれを行うことはできないようです。
resize のようにあまりサポートされていない CSS3 スタイルでも満足できることに注意してください。
そのためのjsFiddle。
現在のサイズ変更できないコード:
HTML:
<div id="boxes">
<a id="about1" class="aboutbox" href="/property-for-sale">
 </a>
<a id="about2" class="aboutbox" href="/why-cyprus"> </a>
<a id="about3" class="aboutbox" href="/why-zantis"> </a>
<span class="stretch"> </span>
</div>
CSS:
#boxes {
padding: 70px 0 70px 0;
text-align: justify;
-ms-text-justify: distribute-all-lines;
text-justify: distribute-all-lines;
}
.aboutbox {
padding: 0;
margin: 0;
display: inline-block;
*display: inline;
zoom: 1;
width: 320px;
height: 225px;
vertical-align: top;
text-align: left;
background-size: auto auto;
}
#about1 {
background:#000 url('http://zantisgroup.com.cy/templates/oneweb/images/SEA_FRONT.jpg') no-repeat center center;
}
#about2 {
background:#000 url('http://zantisgroup.com.cy/templates/oneweb/images/SEA_FRONT.jpg') no-repeat center center;
}
#about3 {
background:#000 url('http://zantisgroup.com.cy/templates/oneweb/images/SEA_FRONT.jpg') no-repeat center center;
}
#about1:hover {
background:#000 url('http://zantisgroup.com.cy/templates/oneweb/images/SEA_FRONT_a.jpg') no-repeat center center;
}
#about2:hover {
background:#000 url('http://zantisgroup.com.cy/templates/oneweb/images/SEA_FRONT_a.jpg') no-repeat center center;
}
#about3:hover {
background:#000 url('http://zantisgroup.com.cy/templates/oneweb/images/SEA_FRONT_a.jpg') no-repeat center center;
}
HTML パネルのサイズを変更すると、期待どおりにフロートすることがわかります。親divに沿って均等に分散するために、一般的な方法を使用しています。また、CSS を使用して、ホバー効果のある画像ボタンを作成しています (グラフィックの性質について尋ねないでください..)。
HTMLパネルのサイズが変更されたときに、それに応じてこれらのサイズを変更したいと思います。つまり、実際のボタンを縮小して 1 行にとどめます。
私はjQueryを使った実用的なソリューションを持っていますが、それなしでこれを得るのに時間を費やし、どこにも行きませんでした. 何か案は?
ティア。