正如您在此頁面中看到的 - http://www.white-cell.com/events.htm - 底部,由於長文本,背景圖像重複。 與此相關的行是:html - 正文backgorund圖像正在重複
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" background="images/bg_wide.gif">
謝謝!
正如您在此頁面中看到的 - http://www.white-cell.com/events.htm - 底部,由於長文本,背景圖像重複。 與此相關的行是:html - 正文backgorund圖像正在重複
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" background="images/bg_wide.gif">
謝謝!
使用CSS來指定您的背景圖片(background
已被棄用)並關閉重複。
把這個在您的head
部分:
<style type="text/css">
body
{
background-image: url(images/bg_wide.gif);
background-repeat: no-repeat;
}
</style>
還有定位的背景圖像(background-position
)的屬性。
您可以使用這種風格,並保持圖像的重複:
body {
background:url(images/bg_wide.gif) no-repeat;
}
的no-repeat
將保持圖像的重複。
謝謝!解決方案是 background-repeat:repeat-x – Ronny 2010-08-25 15:06:54