我想要构造具有与像 与页眉和页脚和动态内容高度的CSS的div
一些内容与位于y重复一个像素的背景的背景报头一个div(或不?)
,并与像
导致类似的东西用在div内容的一些文字背景页脚(正确的结果)
我想用5行或50行的文本得到相同的结果。
现在我有这个HTML
<html>
<head>
<link rel="stylesheet" type="text/css" href="test.css" />
</head>
<body>
<div id="header"></div>
<div id="content">Text goes here
</div>
<div id="footer"></div>
</body>
</html>
这CSS
#header {
width: 959px;
height: 169px;
margin:0 auto;
padding:0;
background: url(header.jpg);
}
#content {
width: 959px;
margin:0 auto;
background: url(content.jpg);
color: white;
}
#footer {
width: 959px;
height: 158px;
margin:0 auto;
padding:0;
background: url(footer.jpg);
}
造成这种(的错误结果)
我希望我证明清楚的问题 干杯
您是否有链接,以便我可以查看它? – 2011-03-20 16:38:10
@ J.T.S。 http://infodim.eu/test2/test.html – 2011-03-20 16:47:50