CSS 有时在初始加载时无法正确加载
有时,当我第一次加载页面时,我的网站标题无法正确形成。
不正确:
在下面的屏幕截图中,标题位于黑色水平线内
替代文本 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看起来你的 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
如果您不使用 @import ,还会发生这种情况吗?只需将样式表直接包含在页面中,看看是否有区别。
If you don't use the
@import
s does it still happen? Just include the stylesheets in the page directly and see if it makes a difference.我们发现了一个数据库问题,该问题间歇性地导致页面的动态内容加载速度比正常情况慢一些。解决这个问题似乎就解决了 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!