English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
jQuer 选择器
:root选择器选择文档的根元素(始终为<html>)。
$(":root")
选择根元素:
$(document).ready(function(){ $(":root").css("background", "lightgreen"); });