背景图像仅在一页上损坏

发布于 2024-10-20 23:31:40 字数 300 浏览 5 评论 0原文

我遇到的问题是,居中对齐并垂直重复的背景图像仅在 上中断最新新闻页面

Screenshot of page

我似乎无法找到为什么它会被破坏,特别是因为它在所有其他页面上都很好 我已经使用 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.

Screenshot of 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

逆夏时光 2024-10-27 23:31:40

看起来背景图像在页面上放置了两次。由于您使用的是 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.

靖瑶 2024-10-27 23:31:40

我认为该页面太渴望一张图像,它重复。

但是,看看你的图像,图像的顶部与底部似乎没有正确连接。 (你知道我的意思吗?)。

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?).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文