1

当我通过 W3C 运行我的 .css 文件时收到 2 条错误消息,但不明白出了什么问题。有没有人有什么建议。

这是错误消息:

117  img.floatright  Parse Error opacity=70)
79   Property -moz-border-radius is an unknown vendor extension

我的 .css 上的对应行是:

 79:   -moz-border-radius: 10px 10px 0px 0px;
117:  filter:alpha(opacity=70);
4

1 回答 1

3

Properties starting with - are vendor prefix properties. They are used to experimental features which might become standard (without the -moz-, -webkit-, etc) in the future. They are not valid. border-radius has become standard and Firefox no longer supports -moz-border-radius as it has moved to the standard.

filter is a proprietary extension to CSS invented by Microsoft and used in older versions of Internet Explorer. It is not valid.

于 2013-06-09T08:55:28.077 回答