W3C校验器错误:解析错误opacity = 60 [英] W3C Validator error: Parse Error opacity=60

查看:139
本文介绍了W3C校验器错误:解析错误opacity = 60的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过CSS验证器在W3C运行一个样式表...我唯一的错误是
Parse Error Opacity = 60
它在CSS的这一位:

  / *导航链接样式* / 
#Nav a:link,a:visited {
display:inline-块;
width:150px;
height:150px;
font-weight:bold;
color:#FFFFFF;
background-color:#99FFFF;
text-align:center;
padding:5px;
text-decoration:none;
text-transform:uppercase;
filter:alpha(opacity = 60);
opacity:0.6;

}



验证器不满意filter:alpha(opacity = 60);部分 - 这只是因为它不是一个标准的功能?

解决方案

是的,这是Microsoft使用的非标准属性(SVG工作组重用该名称,因此它可能出现在新规范中,但这将是一个完全不同的东西)。该错误可以安全地忽略。


I've run a stylesheet through the CSS validator at W3C... The only error I get is "Parse Error Opacity=60" It's in this bit of the CSS:

/*Navigation Link styling */
#Nav a:link, a:visited {
display: inline-block;
width: 150px;
height: 150px;
font-weight: bold;
color: #FFFFFF;
background-color: #99FFFF;
text-align: center;
padding:5px;
text-decoration:none;
text-transform:uppercase;
filter:alpha(opacity=60);
opacity:0.6;

}

I'm assuming that the validator isn't happy with the "filter:alpha(opacity=60);" part - Is this just because it is not a standard function? And can this error be ignored.

Cheers

解决方案

Yes, that is a non-standard property used by Microsoft (the SVG working group is reusing the name so it may appear in a new specification, but that will be a completely different thing). The error can safely be ignored.

这篇关于W3C校验器错误:解析错误opacity = 60的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆