使用radial-gradient()CSS函数将径向渐变设置为背景图像。您可以尝试运行以下代码以在CSS中实现linear-gradient()函数
<!DOCTYPE html> <html> <head> <style> #demo { height: 200px; background: radial-gradient(green, orange, maroon); } </style> </head> <body> <p>Setting background as radial gradient.</p> <div id = "demo"></div> </body> </html>