似乎找不到关于这个的很多信息。
Smashing Magazine似乎基本上说html和:root是一样的,但肯定会有区别?
解决方法
从
W3C wiki:
The
:root
pseudo-class represents an element that is the root of the document. In HTML,this is always the HTML element.
CSS是一种通用的样式语言,它可以与其他文档类型一起使用,不仅可以与HTML(如SVG)一起使用。
从specification(重点矿):
This specification defines Cascading Style Sheets,level 2 revision 1 (CSS 2.1). CSS 2.1 is a style sheet language that allows authors and users to attach style (e.g.,fonts and spacing) to structured documents (e.g.,HTML documents and XML applications).