Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.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
Css Chrome和Firefox的链接颜色不同_Css_Cross Browser - Fatal编程技术网

Css Chrome和Firefox的链接颜色不同

Css Chrome和Firefox的链接颜色不同,css,cross-browser,Css,Cross Browser,在Firefox中,我的网站将“open”一词显示为蓝色,而在Chrome中则是灰色 Firefox计算风格 #content a:link #0645AD style.css?ver=1.2 (line 15) a #444444 (crossed out) style.css (line 424) body #444444 (colored greY) style.php?ver=1.2 (line 1) #content a:hover - #4E8B4E (only it

在Firefox中,我的网站将“open”一词显示为蓝色,而在Chrome中则是灰色

Firefox计算风格

#content a:link #0645AD 
style.css?ver=1.2 (line 15)
a   #444444  (crossed out)
style.css (line 424)
body    #444444 (colored greY)
style.php?ver=1.2 (line 1)
#content a:hover - #4E8B4E (only item not crossed out)
#content a:link - #0645AD .sticky-title, p.trigger.active a, span.current, .themecolor, a:hover, .tag-links a:hover, .excerpt, .unitedthemes a:hover, .copyright a:hover, .entry-meta a:hover, .entry-meta-single-post a:hover, #footer a:hover, #footer .lambda_widget_twitter a, #footer .lambda_widget_recent_comments a,
#sidebar .lambda_widget_twitter a, #sidebar a:hover, .widget_recent_comments a, .lambda_widget_recent_comments a - #80B600 a - #444444 a:-webkit-any-link - -webkit-link user agent stylesheet body - #444444
铬计算样式

#content a:link #0645AD 
style.css?ver=1.2 (line 15)
a   #444444  (crossed out)
style.css (line 424)
body    #444444 (colored greY)
style.php?ver=1.2 (line 1)
#content a:hover - #4E8B4E (only item not crossed out)
#content a:link - #0645AD .sticky-title, p.trigger.active a, span.current, .themecolor, a:hover, .tag-links a:hover, .excerpt, .unitedthemes a:hover, .copyright a:hover, .entry-meta a:hover, .entry-meta-single-post a:hover, #footer a:hover, #footer .lambda_widget_twitter a, #footer .lambda_widget_recent_comments a,
#sidebar .lambda_widget_twitter a, #sidebar a:hover, .widget_recent_comments a, .lambda_widget_recent_comments a - #80B600 a - #444444 a:-webkit-any-link - -webkit-link user agent stylesheet body - #444444
有人能解释为什么会这样吗


更新:现在有一个解决方案,所以网站(http://125.7.123.252/)链接现在是蓝色的,但我不确定这是你想要的,但请确保更具体的CSS选择器(你想要的)写在你不想要的更一般的规则下面(不仅在同一个.css文档中,而且如果您使用的是多个.css文件,请链接到您希望在其他.css样式表下方或“之后”优先使用的文件)

另外,它可能是一个已经访问过的链接的问题

试试这个

#content a:link, #content a:visited { color:#0645AD }
而不仅仅是

#content a {color: #0645AD}

@马特夫:蓝色是正确的款式