11_css

693 ワード




  
  11_css


/* 1. p 2. p red 3. 2 p (#ff0011), (blue), (300px), (30px) */ //1. p //console.log($('p:first').css('color')) //2. p red //$('p').css('color', 'red') //3. 2 p (#ff0011), (blue), (300px), (30px) $('p:eq(1)').css({ color: '#ff0011', background: 'blue', width: 300, height: 30 })