实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style>
5
#grad1 {
6
    height: 150px;
7
    width: 200px;
8
    background: -webkit-repeating-radial-gradient(red, yellow 10%, green 15%); /* Safari 5.1 - 6.0 */
9
    background: -o-repeating-radial-gradient(red, yellow 10%, green 15%); /* Opera 11.6 - 12.0 */
10
    background: -moz-repeating-radial-gradient(red, yellow 10%, green 15%); /* Firefox 3.6 - 15 */
11
    background: repeating-radial-gradient(red, yellow 10%, green 15%); /* 标准的语法(必须放在最后) */
12
}
13
</style>
14
</head>
15
<body>
16
17
<h3>重复的径向渐变</h3>
18
19
<div id="grad1"></div>
20
21
<p><strong>注意:</strong> Internet Explorer 9 及之前的版本不支持渐变。</p>
22
23
</body>
24
</html>