<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.gradient{
height:40px;
background: #A56697;
background:-moz-linear-gradient(left,#CA5A83,#7E72AB);
background:-webkit-linear-gradient(left,#CA5A83,#7E72AB);
background: -o-linear-gradient(left,#CA5A83,#7E72AB);
background: -ms-linear-gradient(left,#CA5A83,#7E72AB);
background: linear-gradient(to right, #CA5A83 %,#7E72AB %);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#CA5A83', endColorstr='#7E72AB',GradientType= );
:root .gradient{filter:none;}
}
</style>
</head>
<body>
<div class="gradient"></div>
</body>
</html>
【知识点】几个常见浏览器内核和IE滤镜filter