老师麻烦看下
来源:3-17 编程练习
xchengguang
2019-09-11 15:36:29
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>径向渐变</title>
<style type="text/css">
div{
width:200px;height:300px;
float:left;
margin:100px 0 0 100px;
}
/*补充代码,分别写出4个元素的背景渐变效果*/
.div1{
background: radial-gradient(circle closest-side at 60% 40% ,red,yellow,green,blue);
}
.div2{
background: radial-gradient(circle farthest-side at 60% 40%,red,yellow,green,blue);
}
.div3{
background: radial-gradient(circle closest-corner at 60% 40%,red,yellow,green,blue);
}
.div4{
background: radial-gradient(circle farthest-corner at 60% 40%,red,yellow,green,blue);
}
</style>
</head>
<body>
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
<div class="div4"></div>
</body>
</html>1回答
好帮手慕嘟嘟
2019-09-11
同学你好,
老师运行了你的代码,效果是正确的,继续努力哦~
如果我的回答帮助了你,欢迎采纳,祝学习愉快~