看板 Web_Design 關於我們 聯絡資訊
我有一張網頁在一開始瀏覽器最上面放了一條橫 bar,背景色黑色 但我發現,如果接下來下面的內容超過瀏覽器橫向寬度時 向右捲動捲軸,最上面黑 bar 在向右捲動後,多出來那段是沒有背景色的 請問是哪裡有問題?謝謝... [index.html] <div id="bar"><h4>視窗左右縮小,卷軸往右拉背景顏色會不見。</h4></div> <div id="container"></div> [style.css] #bar { height: 20px; background: #000; color: #FFF; line-height: 20px; text-align: right; padding-right: 20px; } #container { margin: 0 auto; width: 1000px; height: 1000px; background: url("img/ctbg.gif") top left repeat-y; } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.161.62.197
evenwu:body 下 min-width 03/03 02:23