老师请问为什么我的没有效果
来源:3-21 编程练习
慕田峪9451496
2020-02-21 17:31:39
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>径向渐变</title>
<style type="text/css">
div{
width: 400px;
height: 400px;
/*此处写代码*/
background:-webkit-repeating-radial-gradient(circle,red 0%,orange 5%,yellow 10%,green 15%,cyan 20%,blue 25%,purple 30%);
background: -moz-repeating-radial-gradient(circle,red 0%,orange 5%,yellow 10%,green 15%,cyan 20%,blue 25%,purple 30%);
background: -o-repeating-radial-gradient(circle,red 0%,orange 5%,yellow 10%,green 15%,cyan 20%,blue 25%,purple 30%);
background: repeating-radial-gradient(circle,red 0%,orange 5%,yellow 10%,green 15%,cyan 20%,blue 25%,purple 30%);
}
</style>
</head>
<body>
<div></div>
</body>
</html>
1回答
慕田峪9451496
提问者
2020-02-21
老师找到了,因为green前面用了中文逗号所以没有效果
相似问题