将背景图像添加到div(动态内容)中

| 我有一个DIV ...
<div id=\"content\">

</div>
现在...在设计中,如果您将其视为矩形,则顶部作为页眉,页脚也不同,因此我不能只创建一个1px的背景图像并重复它。 我将必须执行以下操作:
<div id=\"content\">
<div id=\"header\">This will have a fixed bg image</div>
<div id=\"body-content\">This will have a repeated bg image and it\'s the part that can grow.</div>
<div id=\"footer-content\">THis will content a fixed bg image for the footer</div>
</div>
任何人都可以建议明智的最佳方式来处理这种设计CSS吗?     
已邀请:
#header
{
   background-image: url(\'header.png\');
   background-repeat: no-repeat;
}

#body
{
   background-image: url(\'body.png\');
   background-repeat: repeat-y;
}

#footer
{
   background-image: url(\'footer.png\');
   background-repeat: no-repeat;
}
    

要回复问题请先登录注册