ie6下png图片背景色处理

时间:2023-02-19 13:37:55
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>无标题文档</title>
<link rel="shortcut icon" href="img/icoTest.ico">
</head>
<style type="text/css">
.container{
width: 600px;
height: 600px;
margin: auto;
background-image: url("img/heart.png");
background-repeat: no-repeat;
}
</style>
<script src="js/jquery-3.1.1.js"></script>
<!--处理方法-->
<!--[if IE 6]>
<script src="js/DD_belatedPNG_0.0.8a-min"></script>
<script type="text/javascript">
DD_belatedPNG.fix('*');
</script>
<![endif]-->
<body>
<div class="container"> </div>
</body>
<html>