画像にさまざまなリンクを含むメインコントロールページを作成していますが、唯一の問題は、画像をページ全体に合わせてサイズを変更し(ウィンドウをある程度)縮小して拡大することです。
<img src ="image/main.jpg" style="width:100%;height:100%; min-width:600px; min-height:400px;" alt="Main" usemap="#MainMap">
<map name="MainMap">
<area id="login" class="login" shape="circle" coords="91,677,92">
<area id="money_management" class="money" shape="circle" coords="598,680,92">
<area id="withdraw_history" shape="circle" coords="596,304,67">
<area id="transaction_history" shape="circle" coords="784,624,67" href="History.html">
<area id="cart" shape="circle" coords="396,698,67,92">
<area id="buy" shape="circle" coords="898,352,92">
<area id="sell" shape="circle" coords="718,438,92">
<area id="new" shape="circle" coords="570,132,92" href="New.html">
</map>
以前、画像を静的にして別の作業をするために残したときにこれがありました。ウィンドウのサイズを変更した後に座標を更新したかったのですが、jquery でサイズ変更を検出する方法を知っています。構文が見つかりません。座標の更新の例。