私の Web ページは 2 つのもので構成されています。任意のウィンドウのサイズに合わせてサイズ変更される画像と、画像の上の特定の場所に配置された 4 つのテキスト ボックスを含むフォームです。
私の問題は、テキストボックスがウィンドウのサイズ変更時に位置からずれることです。css と jquery ですべてを試すのに 6 時間以上費やしましたが、何もうまくいきません。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
body
{
margin: auto;
width: 100%;
}
.Wrapper
{
position:relative;
min-width: 500px;
width: 100%;
margin:auto;
}
.Image
{
max-width: 1150px;
max-height: 1453px;
width: 100%;
}
.Form
{
position: relative;
top:-260px;
left: 200px;
width: 130px;
border: solid 1px #000;
}
</style>
</head>
<body>
<div class="Wrapper">
<div>
<img src="image.png" class="Image" />
</div>
<div class="Form">
<input type="text" />
<br />
<input type="text" />
<br />
<input type="text" />
<br />
<input type="text" />
</div>
</div>
</body>
</html>
フル ウィンドウ:
ウィンドウのサイズ変更: