CSS边框半径验证错误 [英] CSS border radius validation errors

查看:119
本文介绍了CSS边框半径验证错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用检查我的CSS http://jigsaw.w3.org/css-validator但是我得到-webkit-border-radius,-moz-border-radius和border-radius的错误。我知道这个网站测试v2.1和所有这些border-radius是从v3。那么为什么他们不使用CSS v3作为测试?或者应该使用CSS v3?

I am using to check my CSS http://jigsaw.w3.org/css-validator but I get error for -webkit-border-radius, -moz-border-radius and border-radius. I know that this site test for v2.1 and all these border-radius is from v3. So why they don't use CSS v3 as testing? Or CSS v3 should't be used?

推荐答案

他们只需要在更多选项下选择配置文件。默认是CSS级别2.1,因为这是迄今为止最完整和最终的标准。 CSS级别3仍处于早期起草阶段 - 这意味着规范的任何部分都可能发生巨大变化,甚至验证器有时可能会出错,因此它不会被默认。

They do, you just need to select the profile under More Options. The default is CSS level 2.1 as that's the most complete and final standard as of now. CSS level 3 is still in its early drafting stages — meaning any part of the spec can change drastically — and even the validator may be wrong sometimes, so it's not made default yet.

请注意,供应商加前缀样式将永远不会验证为他们是非标准的,但是正如Juhana说,你至少可以触发警告,允许您的CSS暂时验证。

Bear in mind that vendor-prefixed styles will never validate as they are non-standard, but as Juhana says you can at the very least have them trigger warnings to allow your CSS to validate tentatively.

这篇关于CSS边框半径验证错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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