What is the css / html `root` element?

后端 未结 6 1718
Happy的楠姐
Happy的楠姐 2020-12-30 20:18

I have just recently started using NetBeans IDE (6.9.1) and have used it to add a stylesheet to my site-in-progress.

To my surprise, one element was automatically ad

6条回答
  •  伪装坚强ぢ
    2020-12-30 21:08

    There is no element called root in HTML. The html element itself is "the root element" (which is the term given to the element which is the ancestor of all the other elements in the document), but this would be matched by html { }.

    However, see the :root pseudo-class (with a colon).

提交回复
热议问题