document.getElementById('div1');document.getElementsByTagName('div');getByClass(document,'box'); $('#div1').css('background','red');$('div').css('background','red');$('.box').css('background','red'); $('li:eq(2)').css('background','black');//所选择的元素集合