list-style-type可以在CSS3中设置为NONE吗?

yeg*_*256 1 css w3c-validation css3

我正在通过W3C验证器验证这个CSS :

#breadcrumbs {
  list-style-type: none;
  padding-left: 0;
}
Run Code Online (Sandbox Code Playgroud)

得到这个输出:

Value Error : list-style-type none is not a list-style-type value : none
Run Code Online (Sandbox Code Playgroud)

none这里有什么价值?

Juk*_*ela 5

是的,list-style-type: none在CSS3中有效,就像在CSS 2.1中一样.这既适用于最新的工作草案,也适用于CSS列表和计数器模块3级的当前编辑草案.

但验证者在这里有一个错误; 它是在两天前报道的:错误19927 - list-style-type无法验证.似乎这个bug比最初报告的更广泛; 甚至list-style-type: disc失败了!

验证程序错误当然不会影响浏览器行为.你可以继续使用list-style-type: none.

更新:验证程序错误现已修复.