編集:
ティムからのコードを使用し、それは機能しました!!! 私が持っている唯一の質問は、ヘッダーを本体の他の部分から独立させ、テンプレート画像のように上部と側面からパディングせずに画面全体にストレッチする方法です。
これがデザインテンプレートです: デザインテンプレート
更新されたコードhtml+cssは次のとおりです。
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Rounded Corner Tutorial</title>
<style type="text/css">
body{padding: 10px; background-color: #e8e8e8; font-family: Arial, Helvetica, sans-serif; font-size:12px;}
h1{padding: 0px; margin: 0px;}
#container{
margin:0px auto;
border:0px solid #bbb;
padding:0px;
}
.white-box{width: 180px; margin: 0px;}
#main-header {
border:1px solid #bbb;
height:80px;
padding:10px;
background:#FFF
}
#main-content {
margin-top:10px;
padding-bottom:10px;
}
#main-body {
margin-left:10px;
width:666px;
height:150px;
}
#main-footer {
margin-top:10px;
margin-bottom:10px;
padding:10px;
border:1px solid #bbb;
}
.box {
padding: 8px;
border: 1px solid silver;
-moz-border-radius: 8px;
-o-border-radius: 8px;
-webkit-border-radius: 5px;
border-radius: 8px;
background-color: #fff;
}
.box1 {
width: 200px;
float: left;
}
.box2 {
margin-left: 224px;
}
</style>
</head>
<body>
<div id="container">
<div id="main-header">Main Header</div>
<div id="main-content">
<div class="box box1">
left
</div>
<div class="box box2">
<p>Main Bbody 1...</p>
</div>
</div>
<div id="main-footer">Main Footer</div>
</div>
</body>
</html>