[新着] Webテンプレートを仮オープンしました
body { background:#000000 "image/gi.jpg" repeat-x fixed center; color:#FFFFFF; }↓body { background:#000000 url("./image/gi.jpg") repeat-x fixed center; color:#FFFFFF; }<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>
<html>
<meta http-equiv='Content-Type' content='text/html; charset=Shift_JIS'>
<head>
<title>お試し</title>
<style type="text/css">
<!--
body { background: #000000 url(image/gi.jpg) no-repeat fixed left bottom; margin: 0 0 0 0; }
#container { background: url(image/gi.jpg) no-repeat fixed right top; width: 100%; margin: 0 0 0 0; padding: 80px 0 0 0; }
p { font-size: 200px; color: #FFFFFF; text-align: center; }
-->
</style>
</head>
<body>
<div id="container">
<p>
<strong>これは実験です</strong>
</p>
</div>
</body>
</html>body { background: #000000 url(image/23.jpg) no-repeat fixed left bottom; margin: 0 0 0 0; #container body { url(image/clip3.jpg) no-repeat fixed right top; width: 100%; margin: 0 0 0 0; padding: 80px 0 0 0; }p { font-size: 200px; color: #FFFFFF; text-align: center; }bodyと#containerそれぞれに背景を表示させたいのに、(結果的に)bodyの背景を上書きしている。body{ background: #000000 url(image/23.jpg) no-repeat fixed left bottom; margin: 0 0 0 0; }
#container{ background:url(image/clip3.jpg) no-repeat fixed right top; width: 100%; margin: 0 0 0 0; padding: 80px 0 0 0; }
p { font-size: 200px; color: #FFFFFF; text-align: center; }