使用 CSS 设置径向渐变为背景图像
cssweb developmentfront end technology更新于 2024/10/22 9:48:17
使用 CSS 函数 radius-gradient() 设置径向渐变为背景图像。您可以尝试运行以下代码,在 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>
相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

