-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. 漸變背景重複
- 4. HTML背景漸變重複
- 5. css漸變背景
- 6. CSS重複背景圖像但不重複線性漸變
- 7. 使用css修復漸變背景
- 8. CSS背景過渡 - 漸變
- 9. css背景圖像漸變
- 10. CSS過渡背景漸變
- 11. CSS漸變到純背景
- 12. CSS背景漸變,頂部
- 13. CSS漸變背景按鈕
- 14. css垂直漸變背景
- 15. 調整css漸變背景
- 16. CSS HTML背景漸變
- 17. CSS背景漸變驗證
- 18. CSS背景:重複線性漸變調整
- 19. 在溢出時重複使用CSS背景漸變
- 20. 如何停止重複自身的背景顏色漸變? (css)
- 21. CSS中的漸變背景不需要的重複
- 22. 背景漸變
- 23. 漸變背景
- 24. CSS背景重複
- 25. 使用CSS添加漸變背景
- 26. 背景圖案上方的CSS漸變
- 27. CSS與背景圖像和漸變?
- 28. CSS如何多背景+漸變?
- 29. css線性漸變背景問題
- 30. CSS中的動畫漸變背景
不是漸變帶的只是一些元素(如DIV)橫跨整個頁面?如果是這樣,你可以使用適當的顏色停止線性漸變。 –
需要在黑色(右側和左側)外部重複任何分辨率的部分。 – user8414