背景图像仅在一页上损坏
我遇到的问题是,居中对齐并垂直重复的背景图像仅在 上中断最新新闻页面。
我似乎无法找到为什么它会被破坏,特别是因为它在所有其他页面上都很好 我已经使用 firebug 检查了页面的各个方面,
但仍然找不到导致问题的原因,任何帮助将不胜感激。
I am having a problem where the background image that is centered aligned, and repeated vertically, is only breaking on the Latest News page.
I can't seem to find why it would be breaking, especially as it is fine on every other page within the site, and there is no section of the page that differs in sizes etc.
I have used firebug to inspect all aspects of the page but still can't find what is causing the problem, any help would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来背景图像在页面上放置了两次。由于您使用的是 2000 x 2000 的尺寸,因此剪切会出现在页面的早期,从而导致顶部/底部不合适的问题。
另一件事是顶部/底部不合适,因此所有长度超过 2000 px 的页面都会被剪切,这就是页面上第二次剪切的原因。您应该使用更小的图像,例如 10-40 像素高,以便重复时适合。这将为您的用户带来更快的页面速度。它还可能解决问题,或帮助您找出原因。
It looks like the background image is placed twice on the page. Since you use one that's 2000 x 2000, the cut comes to early on the page, to make it a problem with the top/bottom not fitting.
Another thing is that the top/bottom doesn't fit, so you will get that cut for all pages longer than 2000 px, which is the reason for the second cut on the page. You should instead use a much smaller image, like 10-40 px high, that will fit when repeated. That will give your users a faster page speed. It might also fix the problem, or help you track down the reason.
我认为该页面太渴望一张图像,它重复。
但是,看看你的图像,图像的顶部与底部似乎没有正确连接。 (你知道我的意思吗?)。
I think the page is to long for one image, the it repeat.
But, look at you image, it seem that the top of image is'nt correctly connected with the bottom. (Y know what I mean?).