我在下面有这段代码,它创建了一个背景径向圆渐变。
它在除 IE 之外的所有浏览器上运行良好(即使在 IE9 上也无法运行)
我应该向 css 添加什么才能使其在 IE9 和 IE8 上也能正常工作?
编码:
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css" media="screen">
html {
background-color: #eee;
height:768px;
}
div {
width: 96%;
height: 800px;
padding: 10px;
margin:0 auto;
}
div.circle {
background-image: radial-gradient(center center, circle cover, #352e24, #1a160d);
background-image: -o-radial-gradient(center center, circle cover, #352e24, #1a160d);
background-image: -ms-radial-gradient(center center, circle cover, #352e24, #1a160d);
background-image: -moz-radial-gradient(center center, circle cover, #352e24, #1a160d);
background-image: -webkit-radial-gradient(center center, circle cover, #352e24, #1a160d);
}
</style>
</head>
<body>
<div class="circle"></div>
</body>
</html>