<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>IE6~IE8下的渐变</title> <style type="text/css"> div{ width: 400px; height: 400px; background-color:yellow; /*补充代码*/ background-color:yellow; background-size:100px 100px; background background-image: -webkit-linear-gradient(45deg, purple 25%,transparent 25%), -webkit-linear-gradient(-45deg,purple 25%,transparent 25%), -webkit-linear-gradient(45deg,transparent 25%,purple 75%), -webkit-linear-gradient(-45deg,transparent 25%,purple 75%); background-image: -moz-linear-gradient(45deg, purple 25%,transparent 25%), -moz-linear-gradient(-45deg,purple 25%,transparent 25%), -moz-linear-gradient(45deg,transparent 25%,purple 75%), -moz-linear-gradient(-45deg,transparent 25%,purple 75%); background-image: -o-linear-gradient(45deg, purple 25%,transparent 25%), -o-linear-gradient(-45deg,purple 25%,transparent 25%), -o-linear-gradient(45deg,transparent 25%,purple 75%), -o-linear-gradient(-45deg,transparent 25%,purple 75%); background-image: linear-gradient(45deg, purple 25%,transparent 25%), linear-gradient(-45deg,purple 25%,transparent 25%), linear-gradient(45deg,transparent 25%,purple 75%), linear-gradient(-45deg,transparent 25%,purple 75%); } </style></head><body> <div></div> </body></html>
- 1 回答
- 0 关注
- 1183 浏览
添加回答
举报
0/150
提交
取消