background屬性順序
要按順序?qū)憜?background : [background-color] | [background-image] | [background-position][/background-size] | [background-repeat] | [background-attachment] | [background-clip] | [background-origin],...
要按順序?qū)憜?background : [background-color] | [background-image] | [background-position][/background-size] | [background-repeat] | [background-attachment] | [background-clip] | [background-origin],...
2016-07-28
舉報
2016-07-31
1理論上, 可以采用任何順序書寫,但有一個小小的限制:如果background-position有兩個值,它們必須一起出現(xiàn),而且這兩個值是長度或百分比,必須按照水平在前垂直在后的順序。 ?2 ?background沒有必不可少的值,只要至少出現(xiàn)一個值就可以,如background:red ? ; ? 其效果是把除了顏色的值都設(shè)置為默認 。 ? ??
2016-07-28
不用按順序?qū)?br />