ヘッダーに「2行」があり、水平方向とフッターを繰り返す必要があるWebサイトに取り組んでいます.2行
の背景繰り返し画像をすでに作成しています
「2番目の背景リピート画像」の位置を「フッターdiv」の位置と同じにする方法..
実は一番上の2行を1つの「背景リピート画像」にしています…
HTML コード:
<body>
<div id="websiteContents">
<div id="header">
<div id="headerLine"></div>
contents
<div id="headerLine_down"></div>
</div>
vary contents
<div class="footer">
<a href="#">Home</a>
<a href="#">about</a>
<a href="#">contact us</a>
</div>
</div>
</body>
CSS コード:
body {
background: url(../images/standard/repeat_header.png) #FFF repeat-x 0 165px;
}
#websiteContents {
width: 1150px;
margin: 0 auto;
}
#headerLine {
width: 1150px;
height: 4px;
background-color: #647193;
float: left;
margin-top: 14px;
}
#headerLine_down {
width: 1150px;
height: 9px;
background-color: #2B303E;
}
.footer {
width: 1150px;
background-color: #2A2F3D;
other styles...
}
Web サイトが大きすぎるので、完全なコードが必要な場合は、私が提供します
皆さん、ありがとうございました