jQuery :root 选择器
jQuery 教程
· 2019-03-10 14:27:39
实例
设置 HTML 文档的背景颜色为黄色:
$(":root").css("background-color","yellow");
定义和用法
:root 选择器选取文档的根元素。
在 HTML 中,根元素总是 <html> 元素。
Syntax
$(":root")
点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html
Scalability Rules
Martin L. Abbott、Michael T. Fisher / Addison-Wesley Professional / 2011-5-15 / USD 29.99
"Once again, Abbott and Fisher provide a book that I'll be giving to our engineers. It's an essential read for anyone dealing with scaling an online business." --Chris Lalonde, VP, Technical Operatio......一起来看看 《Scalability Rules》 这本书的介绍吧!