简体   繁体   English

“属性转换不存在”错误

[英]“Property transition doesn't exist” error

I am having issue when validating my CSS with the W3C validator http://www.css-validator.org/ . 使用W3C验证器http://www.css-validator.org/验证CSS时出现问题。 It gives me the following error: 它给了我以下错误:

Property transition doesn't exist : 0.5s ease 0.5s ease 属性transition不存在: 0.5s ease 0.5s ease

Here is my HTML code: 这是我的HTML代码:

<div class="class_name">test</div>

Here is my CSS code 这是我的CSS代码

.class_name{
    width:100%;
    float:left;
    transition: 0.5s ease;
    -webkit-transition: 0.5s ease;
    -moz-transition: 0.5s ease;
    -ms-transition: 0.5s ease;
    -o-transition: 0.5s ease;
}

HTML works in all browsers and I am not sure what is wrong with the code. HTML在所有浏览器中均可使用,我不确定代码有什么问题。 Is this a W3C validator bug or I am doing something wrong? 这是W3C验证程序错误还是我做错了什么?

The site you used does not appear to be legitimate or officially endorsed by W3C — although it looks similar, there is a lot of garbage at the bottom (including a widget for a Facebook page that does not even remotely seem official) and there are slight layout differences. 您使用的网站似乎不是W3C的合法或官方认可-尽管它看起来很相似,但底部却有很多垃圾(包括Facebook页面的一个小部件,该小部件甚至看上去都不是正式的),而且该网站布局差异。

The official Jigsaw W3C CSS Validator, which does not appear to be the same one you used, validates your CSS just fine. 官方的Jigsaw W3C CSS验证器似乎与您使用的不是相同的,它可以很好地验证CSS。 For reference, the official URL is http://jigsaw.w3.org/css-validator . 作为参考,官方URL是http://jigsaw.w3.org/css-validator

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM