サイトの画像の上にある要素があります。画像は、すべてのブラウザーで正しい位置にウィンドウに読み込まれ、webkit を除くすべてのブラウザー (具体的には Safari と Chrome) に属する場所に再配置されます。Webkit ブラウザーでは、ウィンドウのサイズを変更しようとすると、要素が画像の下に再配置され、その余白が画像に対して相対的に設定されます。
これが私のhtmlです:
<body>
<div class="header-image">
<img id="headerimg" src="images/header.jpg" alt="" />
<img id="link-header" src="images/link-header.png" alt="" />
</div>
</body>
CSSは次のとおりです。
body { max-width:1236px; margin:0 auto; position:relative; }
.header-image { width:100%; height:auto; max-width:1236px; margin:0 auto; position:relative; }
#headerimg { width:100%; max-width:1236px; height:auto; }
#link-header { position:absolute; right:0; margin-right:10%; margin-top:275px; }
私が言ったように、他のすべてのブラウザは問題なくサイズ変更を行います。この問題が発生しているのは webkit だけです。アイデアはありますか?