我有一個repeat-x問題。我的CSS代碼是這樣的:Repeat-x無法正常工作-css
#header {
}
#header_left {
background:url("../img/header_l.png") no-repeat;
float:left;
width:341px;
height:258px;
}
#header_content {
background:url("../img/header_c.png") repeat-x;
width:32px;
height:258px;
float:left;
}
#header_right {
background:url("../img/header_r.png") no-repeat;
float:right;
width:341px;
height:258px;
}
和HTML代碼:
<div id="header">
<div id="header_left"></div>
<div id="header_content"></div>
<div id="header_right"></div>
</div>
但圖像header_c.png重複一次。我該如何解決這個問題?
下面是屏幕截圖:http://i.stack.imgur.com/mo0JW.png,header_c.png重複一次,然後留下空的空間。
你是什麼意思與 '是重複一次' ? – bjornruysen
'#header_content {width:32px; }' - 看起來很窄。 – thirtydot
你能提供截圖嗎?如果沒有原始圖像,幾乎不可能看到這些症狀... – BenM