布局
我真的不知道从哪里开始使用 DIV 或表格来制作它,特别是因为我需要顶部背景和底部背景。请我需要这个方向,如果你能用我放在图像上的名字制作 css,我会理解代码而无需任何解释。非常感谢您的帮助。
最佳答案
Have look if this is你想要什么(在 SAFARI 5.0 上测试) 如果是,代码如下所示
<html>
<head>
<style type="text/css">
* {margin:0px;padding:0px;border:0px;}
body{background:#e8a7aa;}
#bg-top{height:200px;width:100%;background:#008a2b;display:block;float:left;}
#container{float:left;width:900px;z-index:100;margin-left:150px;margin-top:-700px;}
#header{background:#3d2627;height:180px;}
#content{background:#94101e;height:340px;}
#footer{background:#3d2627;height:180px;}
#bg-bottom{height:200px;width:100%;background:#008a2b;display:block;margin-top:300px;float:left;}
</style>
</head>
<body>
<div id="bg-top"></div>
<div id="bg-bottom"></div>
<div id="container">
<div id="header"></div>
<div id="content"></div>
<div id="footer"></div>
</div>
</body>
</head>
也将感谢任何其他评论,干杯
关于css - 如何制作这个布局?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4156447/