background與background-color的區(qū)別
$("li:contains(jQuery)").css("background", "green");
突然想到這個問題,background與background-color的區(qū)別,好像效果一樣的
$("li:contains(jQuery)").css("background", "green");
突然想到這個問題,background與background-color的區(qū)別,好像效果一樣的
2016-03-30
舉報
2016-03-30
background包含
background-color
background-position
background-size
background-repeat
background-origin
background-clip
background-attachment
background-image
你只設(shè)置了color屬性,所以效果相同
2016-06-29
background包括background的所有屬性 ?,而background-color 是指明了只設(shè)置顏色屬性。
2016-06-10
background:就是簡寫模式,后面可以設(shè)置多個屬性值