-4
A
回答
0
<body>
<div id="header" style="width:1316px;height:80px;">
<div style="width:150px;height:72px;background-color:white;float:left;">repeat</div>
<div id="header-internal" style="background-color:gray;float:left;">
1016px
</div>
<div style="background-color:white;width:150px;height:72px;float:left;">repeat</div>
</div>
<div id="content">
what repeat background header left and right? two colors different?
</div>
<div id="footer">
footer
</div>
<br /> <br /> <br />
Should look like:
<img src="http://i.stack.imgur.com/KCbiK.png" />
</body>
和CSS将
body {
margin:0;
padding:0;
}
#header {
background:url("http://s10.postimg.org/jfhegkq49/bg_center.jpg") no-repeat;
background-position: bottom center;
background-color: #EFEFEF;
background-size:100%;
height: 80px;
}
#header-internal{
margin: 0 auto;
height: 72px;
width: 1015px;
}
#footer {
background-color: red;
height: 80px;
margin-top:20px;
}
相关问题
- 1. CSS背景渐变重复问题
- 2. 重复线性渐变的CSS背景
- 3. HTML背景渐变重复
- 4. 渐变背景重复
- 5. css渐变背景
- 6. CSS重复背景图像但不重复线性渐变
- 7. 使用css修复渐变背景
- 8. CSS背景渐变验证
- 9. CSS HTML背景渐变
- 10. CSS背景过渡 - 渐变
- 11. css背景图像渐变
- 12. css垂直渐变背景
- 13. CSS过渡背景渐变
- 14. CSS背景渐变,顶部
- 15. CSS渐变到纯背景
- 16. CSS渐变背景按钮
- 17. 调整css渐变背景
- 18. 在溢出时重复使用CSS背景渐变
- 19. CSS中的渐变背景不需要的重复
- 20. CSS背景:重复线性渐变调整
- 21. 如何停止重复自身的背景颜色渐变? (css)
- 22. 渐变背景
- 23. 背景渐变
- 24. CSS背景重复
- 25. CSS圆角表角落,渐变背景
- 26. CSS IE正文背景渐变
- 27. CSS与背景图像和渐变?
- 28. 使用CSS添加渐变背景
- 29. 多个CSS线性渐变为背景
- 30. 缩放在CSS中的渐变背景
不是渐变带的只是一些元素(如DIV)横跨整个页面?如果是这样,你可以使用适当的颜色停止线性渐变。 –
需要在黑色(右侧和左侧)外部重复任何分辨率的部分。 – user8414