0
Safari和Firefox上的网站加载看起来不错,但在Chrome浏览器中表现得非常奇怪。 Chrome似乎正在努力加载网页,动画非常生涩/白色。不知道我错了哪里,在我将它从本地移动到托管之前,它在Chrome中看起来很好。Chrome浏览器在悬停项目上闪烁白色空间
这是菜单的一个片段,例如在悬停时它会在镀铬处闪烁白色。另外,它似乎铬不会加载不在其视口。
body {
position: relative;
background: #fffdfa;
font-size: 16px;
}
.t-menu {
position: absolute;
width: 100%;
top: 3em;
height: 13em;
z-index: 99;
}
.t-ul {
list-style: none;
margin: 0;
padding: 0;
}
.t-menu-ul {
position: relative;
width: 100%;
max-width: 80em;
height: 13em;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 1em 2em 0 2em;
margin: 0 auto;
}
.t-menu-ul li {
position: relative;
display: inline-block;
width: 8em;
text-align: center;
}
a.t-link {
position: relative;
font-family: 'Caviar Dreams', sans-serif;
font-weight: 900;
color: #fffdfa;
padding-bottom: 0.6em;
border-bottom: 0.4em solid rgba(0,0,0,0);
cursor: pointer;
transition: all 0.2s ease-in-out;
}
a.t-link:hover {
text-decoration: none;
border-bottom: 0.4em solid #e7b32c;
}
.t-hero {
position: relative;
width: 100%;
height: 100vh;
min-height: 50em;
max-height: 67.5em;
border: 2em solid #fffdfa;
border-top: 3em solid #fffdfa;
background-image: linear-gradient(rgba(18, 5, 7, 0.4), rgba(18, 5, 7, 0.4)), url('/img/fl-hero-a.jpg');
background-blend-mode: multiply;
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
transition: all 0.2s ease;
}
<nav class="t-menu">
<ul class="t-ul t-menu-ul">
<li>
<a class="t-link" href="https://www.facebook.com/tjsbowties" target="_blank">
<i class="fa fa-lg fa-facebook-official" aria-hidden="true"></i>
</a>
</li>
<li>
<a class="t-link" href="https://www.instagram.com/tjs_bowties/" target="_blank">
<i class="fa fa-lg fa-instagram" aria-hidden="true"></i>
</a>
</li>
<li class="logo-list-item">
<img class="img-responsive margin-auto logo-img" src="/img/tj-bowties-logo.svg" alt="" />
</li>
<li>
<a class="t-link page-scroll" href="#about">
About
</a>
</li>
<li>
<a class="t-link" href="https://squareup.com/store/tjs-bowties/">
Order
</a>
</li>
</ul>
</nav>
你可以发布代码给你的问题? –
好吧添加了一个问题发生的代码示例,但它是整个网站 – user7410323
我认为这是因为您的页面大小太大(〜6MB),这意味着如果您在页面加载时悬停在某处(加载可能会花费一个很多时间),悬停动画可能无法正常工作。 – shaochuancs