如圖web
backgroun: top, pink, skyblue;
Gradient has outdated direction syntax. New syntax is like 'to left' instead of 'right'.
backgroun: to top, pink, skyblue;
#grad {
background: -webkit-linear-gradient(left top, red , blue); /* Safari 5.1 to 6.0 */
background: -o-linear-gradient(bottom right, red, blue); /* Opera 11.1 to 12.0 */
background: -moz-linear-gradient(bottom right, red, blue); /* Firefox 3.6 to 15 */
background: linear-gradient(to bottom right, red , blue); /* 標準語法 */
}
複製代碼