运行 ❯
获取您的
自有
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #grad1 { height: 200px; background-color: #cccccc; background-image: linear-gradient(red, yellow, green); } </style> </head> <body> <h2>Linear Gradient as Background Image</h2> <p>This linear gradient starts at the top. It starts red, transitioning to yellow, then to green:</p> <div id="grad1"></div> </body> </html>