我正在尝试让 unitpngfix 工作,但我似乎无法让 png 显示在 IE6 中。
这是我的代码:
<html>
<head>
<style type="text/css">
#boxouter {
width: 12em;
height: 12em;
background: url(gradient.gif) #ffdf00 bottom repeat-x;
position: relative;
}
#boxinnerbr {
position: absolute;
bottom: 0;
right: 0;
width: 16px;
height: 16px;
background: url(corner.png);
}
</style>
<!--[if lt IE 7]>
<script type="text/javascript" src="unitpngfix.js"></script>
<![endif]-->
</head>
<body>
<div id="boxouter">
<div id="boxinnerbr"></div>
</div>
</body>
</html>
我在正确的位置有 clear.gif 并正确链接等,所以我无法理解为什么它不起作用。