CSS 有时在初始加载时无法正确加载

发布于 2024-08-20 16:45:14 字数 697 浏览 4 评论 0原文

有时,当我第一次加载页面时,我的网站标题无法正确形成。

不正确:

在下面的屏幕截图中,标题位于黑色水平线内

替代文本 http://techboy. co.uk/misc/In Correct_View.PNG


刷新页面后,标题下方有空白:

替代文本 http://techboy.co.uk/misc/Correct_View.PNG

这个问题已在多个页面上出现,而不仅仅是我截图的页面(http://www.getmecooking.com/blog/review-of-food-bloggers-connect-london-november-2009

请告诉我原因这可能会发生,如何解决?

谢谢。

Sometimes the header of my website does not form properly when I first load a page.

Incorrect:

In the screenshot below the headings are inside the black horizontal line

alt text http://techboy.co.uk/misc/Incorrect_View.PNG

After refreshing the page, there is space below the headings:

alt text http://techboy.co.uk/misc/Correct_View.PNG

This issue has been seen on several pages, not just the one I have taken a screenshot of (http://www.getmecooking.com/blog/review-of-food-bloggers-connect-london-november-2009)

Please can you tell me why this might be occurring and how to resolve it?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

陪我终i 2024-08-27 16:45:14

看起来你的 CSS 文件正在加载。这个问题似乎是一个 {position: } 问题。我也遇到过类似的问题,元素是绝对定位的,但不包含在另一个相对定位的 div 中

it seems like you CSS file is loading. the problem seems to be a {position: } issue. i've faced the similar problem with elements that are absolute positioned but are not contained in another div which is relative positioned

Spring初心 2024-08-27 16:45:14

如果您不使用 @import ,还会发生这种情况吗?只需将样式表直接包含在页面中,看看是否有区别。

If you don't use the @imports does it still happen? Just include the stylesheets in the page directly and see if it makes a difference.

电影里的梦 2024-08-27 16:45:14

我们发现了一个数据库问题,该问题间歇性地导致页面的动态内容加载速度比正常情况慢一些。解决这个问题似乎就解决了 CSS 问题!

We identified a DB issue that was intermittently causing the dynamic content of pages to load a little slower than normal. Fixing that seems to have fixed the CSS issue!

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