코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>CSS3 Linear Gradients</title> <style> #grad { height: 200px; background: green; background: -webkit-linear-gradient(right, green, yellow); background: -moz-linear-gradient(right, green, yellow); background: -o-linear-gradient(right, green, yellow); background: linear-gradient(to left, green, yellow); } </style> </head> <body> <h1>선형 그래디언트 - 오른쪽에서 왼쪽으로</h1> <div id="grad"></div> </body> </html>