jQuery 教程 / jQuery :root 选择器 DOCUMENT / 文档 jQuery :root 选择器 jQuery :root 选择器 jQuery :root 选择器 jQuery 选择器实例设置 HTML 文档的背景颜色为黄色:$(":root").css("background-color","yellow"); 尝试一下 » 定义和用法:root 选择器选取文档的根元素。在 HTML 中,根元素总是 <html> 元素。Syntax$(":root") jQuery 选择器 上一篇 jQuery :visible 选择器 下一篇 jQuery :lang() 选择器