๋ฐ์ํ
ํด๋น ๋ฌธ์ ๋ body์ ์ ์ฉ๋๋ css์ ๋ฌธ์ ์์.
background-color์ ์ ์ฉ๋์ง ์๋ ๊ฒ์ background๋ก ๋ฐ๊ฟ์ฃผ๋ฉด ํด๊ฒฐ ๋จ.
Before:
background-color: linear-gradient(180deg, #f08, #d0e);
After:
background: linear-gradient(180deg, #f08, #d0e);
์ฐธ๊ณ
Because <gradient>s belong to the <image> data type, they can only be used where <image>s can be used. For this reason, linear-gradient() won't work on background-color and other properties that use the <color> data type.
๋ฐ์ํ
๋๊ธ