正如您在此页面中看到的 - 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