简体   繁体   English

Header 中的累积布局移位 (CLS)

[英]Cumulative Layout Shift (CLS) in Header

I am having a trouble with some Cumulative Layout Shift (CLS) appearing from the footer in the header.我在 header 的页脚出现一些累积布局偏移 (CLS) 时遇到问题。 The social icons + the text 'discover' appears behind the main logo.社交图标 + 文字“发现”出现在主徽标后面。

Domain is www.minoar.com域名是www.minoar.com

Some of the CSS here from it is:这里的一些 CSS 是:

#footerSocial {
top: 27px;
display: block;
 
#footerSocial {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
text-align: center;
padding: 5px 50px 0 50px;

However I am not sure how to fix this and make it static to the footer.但是,我不确定如何解决此问题并将其设置为 static 到页脚。 I'll appreciate your advises.我会很感激你的建议。 Thank you so much!太感谢了!

Just try试试看嘛

position:sticky

for your footer section.为您的页脚部分。 This will fix the issue.这将解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM