为什么无法实现效果?
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>重复的彩虹</title> <style type="text/css"> div { width: 800px; height: 400px; border: 1px solid red; /*补充代码,写出div背景颜色的渐变效果*/ background: -webkit-repeating-linear-gradient(90deg,red 0%,orange 5%,yellow 10%,green 15%,blue 20%,,indigo 25%,violet 30%); background: -moz-repeating-linear-gradient(90deg,red 0%,orange 5%,yellow 10%,green 15%,blue 20%,,indigo 25%,violet 30%); background: -o-repeating-linear-gradient(90deg,red 0%,orange 5%,yellow 10%,green 15%,blue 20%,,indigo 25%,violet 30%); background: repeating-linear-gradient(90deg,red 0%,orange 5%,yellow 10%,green 15%,blue 20%,,indigo 25%,violet 30%); } </style> </head> <body> <div></div> </body> </html>
0
收起
正在回答 回答被采纳积分+1
1回答
qq_鸭绿桥第一帅哥_0
2019-03-15 18:36:34
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>重复的彩虹</title> <style type="text/css"> div { width: 800px; height: 400px; border: 1px solid red; /*补充代码,写出div背景颜色的渐变效果*/ background: -webkit-repeating-linear-gradient(90deg,red 0%,orange 5%,yellow 10%,green 15%,blue 20%,indigo 25%,violet 30%); background: -moz-repeating-linear-gradient(90deg,red 0%,orange 5%,yellow 10%,green 15%,blue 20%,indigo 25%,violet 30%); background: -o-repeating-linear-gradient(90deg,red 0%,orange 5%,yellow 10%,green 15%,blue 20%,indigo 25%,violet 30%); background: repeating-linear-gradient(90deg,red 0%,orange 5%,yellow 10%,green 15%,blue 20%,indigo 25%,violet 30%); } </style> </head> <body> <div></div> </body> </html>
找到错误了,请老师过目
响应式开发与常用框架 2018
- 参与学习 人
- 提交作业 2198 份
- 解答问题 5012 个
如果你有web端基础,既想进阶,又想进军移动端开发,那就来吧,我们专题为你带来的课程有HTML5、CSS3、移动基础、响应式、bootstrap、less等,让你在前端道路上畅通无阻!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星