CSS3에서 다중 색상 그라디언트를 구현하기 위해 다음 코드를 실행할 수 있습니다 -
예시
<html> <head> <style> #grad2 { height: 100px; background: -webkit-linear-gradient(red, orange, yellow, red, blue, green,pink); background: -o-linear-gradient(red, orange, yellow, red, blue, green,pink); background: -moz-linear-gradient(red, orange, yellow, red, blue, green,pink); background: linear-gradient(red, orange, yellow, red, blue, green,pink); } </style> </head> <body> <div id = "grad2"></div> </body> </html>