Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 铬在悬停物品上闪烁空白_Html_Css - Fatal编程技术网

Html 铬在悬停物品上闪烁空白

Html 铬在悬停物品上闪烁空白,html,css,Html,Css,网站负载在Safari和Firefox上看起来不错,但在google chrome上表现得非常奇怪。Chrome似乎很难加载页面,动画非常急促/白色浮华。不知道我哪里出错了,在我把它从本地转移到主机之前,它在Chrome上看起来很好 这里是菜单的一个片段,例如,在悬停时,它将在chrome中闪烁白色。此外,chrome似乎不会加载不在其视口中的内容 正文{ 位置:相对位置; 背景:#fffdfa; 字体大小:16px; } .t菜单{ 位置:绝对位置; 宽度:100%; 顶部:3em; 高度:

网站负载在Safari和Firefox上看起来不错,但在google chrome上表现得非常奇怪。Chrome似乎很难加载页面,动画非常急促/白色浮华。不知道我哪里出错了,在我把它从本地转移到主机之前,它在Chrome上看起来很好

这里是菜单的一个片段,例如,在悬停时,它将在chrome中闪烁白色。此外,chrome似乎不会加载不在其视口中的内容

正文{
位置:相对位置;
背景:#fffdfa;
字体大小:16px;
}
.t菜单{
位置:绝对位置;
宽度:100%;
顶部:3em;
高度:13公分;
z指数:99;
}
t-ul{
列表样式:无;
保证金:0;
填充:0;
}
.t-menu-ul{
位置:相对位置;
宽度:100%;
最大宽度:80em;
高度:13公分;
显示器:flex;
弯曲方向:行;
柔性包装:包装;
证明内容:中心;
对齐项目:居中;
填充:1米2米0 2米;
保证金:0自动;
}
.t-menu-ul li{
位置:相对位置;
显示:内联块;
宽度:8em;
文本对齐:居中;
}
a、 丁字环{
位置:相对位置;
字体系列:“鱼子酱之梦”,无衬线;
字号:900;
颜色:#fffdfa;
垫底:0.6em;
边框底部:0.4em实心rgba(0,0,0,0);
光标:指针;
过渡:所有0.2秒缓进缓出;
}
a、 t-link:悬停{
文字装饰:无;
边框底部:0.4em实心#e7b32c;
}
t-英雄{
位置:相对位置;
宽度:100%;
高度:100vh;
最小高度:50em;
最大高度:67.5em;
边框:2米实心#fffdfa;
边框顶部:3em实心#fffdfa;
背景图像:线性渐变(rgba(18,5,7,0.4),rgba(18,5,7,0.4)),url('/img/fl-hero-a.jpg');
背景混合模式:倍增;
背景位置:中心;
背景尺寸:封面;
背景重复:无重复;
过渡:所有0.2秒缓解;
}

找到了我的解决方案。通过更改modals使其具有css可见性:visible和visibility:hidden,我的闪光问题消失了。问题是一次初始化的刷卡器太多

您能发布给您带来问题的代码吗?好的,在出现问题的地方添加了一个代码示例,但它是站点范围的。我认为这是因为您的页面大小太大(~6MB),这意味着如果在加载页面时将鼠标悬停在某个位置(加载可能会花费很多时间),则鼠标悬停动画可能无法正常工作。
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>