jQuery :root 选择器 jQuery 选择器 ← jQuery 选择器 Toggle 定义和用法Syntax 实例 Run this code » 设置 HTML 文档的背景颜色为黄色: $(":root").css("background-color","yellow"); 定义和用法 :root 选择器选取文档的根元素。 在 HTML 中,根元素总是 元素。 Syntax $(“:root”) 标签:jQuery ← jQuery :visible 选择器 jQuery :lang() 选择器 →