<html>
<head>
<style>
#grad1 {
height: 150px;
width: 200px;
background-image: radial-gradient(red, yellow, green);
}
#grad2 {
height: 150px;
width: 200px;
background-image: radial-gradient(circle, red, yellow, green);
}
</style>
</head>
<body>
<h1>径向渐变 - 形状</h1>
<p><strong>椭圆(默认):</strong></p>
<div id="grad1"></div>
<p><strong>圆:</strong></p>
<div id="grad2"></div>
<p><b>注释:</b>Internet Explorer 9 以及更早的版本不支持渐变。</p>
</body>
</html>