且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

匹配整个文档的第一个元素?

更新时间:2021-11-18 00:06:09

您允许使用jQuery作弊?某些时候的jQuery(JavaScript的)提供(S)超出了HTML和CSS的局限性优雅的替代品

are you allowed to cheat with jQuery? some times jQuery (javascript) provide(s) elegant alternatives beyond the html and css limitations

$(document).ready(function() {
 $('body').find('h1:first').css('color','#0000ff');
}); //  ready