<html>
<head>
<style>
#grad1 {
height: 100px;
background: linear-gradient(0deg, red, blue); /* Safari 5.1 - 6.0 */
background: linear-gradient(0deg, red, blue); /* Opera 11.1 - 12.0 */
background: linear-gradient(0deg, red, blue); /* Firefox 3.6 - 15 */
background: linear-gradient(0deg, red, blue); /* 标准的语法(必须放在最后) */
}
#grad2 {
height: 100px;
background: linear-gradient(90deg, red, blue); /* Safari 5.1 - 6.0 */
background: linear-gradient(90deg, red, blue); /* Opera 11.1 - 12.0 */
background: linear-gradient(90deg, red, blue); /* Firefox 3.6 - 15 */
background: linear-gradient(90deg, red, blue); /* 标准的语法(必须放在最后) */
}
#grad3 {
height: 100px;