❮ jQuery 选择器
设置 HTML 文档的背景颜色为黄色:
$(":root").css("background-color", "yellow");
:root 选择器选取文档的根元素。
在 HTML 中,根元素总是 <html> 元素。
$(":root")
Copyright@2017-2018 Linux265. 豫ICP备16021824号-1 Powered by Linux265资源分享网