2

我在 Chrome 或我的 CSS 中有一个奇怪的错误,我不知道为什么。

它涉及到下一个开发网站:http ://bit.ly/13KoKOU

每当我在 Chrome 中刷新页面时,链接中的颜色都会从访问的默认紫色闪烁到我想要的颜色。在几毫秒内,您可以看到紫色。

此外,当您刷新页面时,您很快就会看到子菜单逐渐消失。当然,这不应该是这种情况,因为它需要在加载时隐藏。但就像紫色的链接颜色一样,你可以在几毫秒内看到它。

我只使用链接:

a:link,
a:visited{ 
    color:#ff368e;
    text-decoration: none!important;
    -webkit-transition: color 0.2s linear;
    -moz-transition: color 0.2s linear;
    -o-transition: color 0.2s linear;
    transition: color 0.2s linear;

}
a:hover, a:focus { color: #d82071; }

对于子菜单:

.header .categories ul ul {
z-index: 1;
opacity:0;
visibility: hidden;
border-bottom: solid 1px #e7e7e7;
background: #fff; 
display: block; 
-webkit-box-shadow: 0 1px 1px #eee;
-moz-box-shadow: 0 1px 1px #eee;
box-shadow: 0 1px 1px #eee;
margin-left: 32px;
-webkit-transition: all 0.2s ease-out 0.1s;
-moz-transition: all 0.2s ease-out 0.1s;
-ms-transition: all 0.2s ease-out 0.1s;
-o-transition: all 0.2s ease-out 0.1s;
transition: all 0.2s ease-out 0.1s;
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;

}

我正在使用谷歌浏览器 26.0.1410.64。所有其他浏览器都可以正常工作。

它是一个错误,可以修复还是我的 CSS?

4

0 回答 0