兼容IE6,IE7,IE8的元素背景渐变
<!DOCTYPE html><html>
<head>
<meta charset=utf-8 />
<title>CSS 实现元素背景渐变</title>
</head>
<body>
<style type="text/css">
.demo {
width:100%
height:200px
background: -webkit-gradient(linear, 0 0, 0 100%, from(#80c1e7), to(#213c7c))
background: -webkit-linear-gradient(left, #80c1e7, #213c7c)
background: -moz-linear-gradient(left, #80c1e7, #213c7c)
background: -o-linear-gradient(left, #80c1e7, #213c7c)
background: -ms-linear-gradient(left, #80c1e7, #213c7c)
background: linear-gradient(left, #80c1e7, #213c7c)
filter: progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr = #80c1e7, endColorstr = #213c7c)
}
</style>
<div class="demo"></div>
</body>
</html>
1:css3中的渐变属性不支持IE678。2:如果你想要支持css3中有些属性支持IE低版本浏览器,需要到网上找一个插件。
3:这个插件也只不过支持部分新增的css3属性。所以建议你别费这个精力。
4:IE低版本浏览器淘汰是趋势,现在淘宝都将不支持IE8版本。
5:对于以上有什么不理解或者不正确的请追问指正出来,
6:望采纳