简体   繁体   English

CSS 边界半径验证错误

[英]CSS border radius validation errors

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.我正在检查我的 CSS http://jigsaw.w3.org/css-validator但我收到 -webkit-border-radius、-moz-border-radius 和 border-radius 错误。 I know that this site test for v2.1 and all these border-radius is from v3.我知道这个站点对 v2.1 的测试和所有这些边界半径都来自 v3。 So why they don't use CSS v3 as testing?那么为什么他们不使用 CSS v3 作为测试呢? Or CSS v3 should't be used?还是不应该使用 CSS v3?

They do, you just need to select the profile under More Options.他们这样做,您只需要 select 更多选项下的配置文件。 The default is CSS level 2.1 as that's the most complete and final standard as of now.默认值为 CSS 2.1 级,因为这是目前最完整和最终的标准。 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. CSS 3 级仍处于早期起草阶段——这意味着规范的任何部分都可能发生巨大变化——甚至验证器有时也可能是错误的,所以它还没有成为默认值。

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.请记住, 供应商前缀的 styles 永远不会验证,因为它们是非标准的,但正如 Juhana 所说,您至少可以让它们触发警告以允许您的 CSS 进行初步验证。

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

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