开发者

dd_belatedpng.js : Failing on IE6 Virtual Machine

I have a transparent png (test.png) and I'm trying to use dd_belatedpng.js so it shows in IE6. It's version 0.0.8a.

No matter what I do, the background image just does not appear. I've installed httpwatch and looking at that I know its being loaded. Any ideas?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>

  </head>
<body>

    <style type="text/css">

        .footer {
            background-image: url(/images/test.png);
            width:900px;
            border:1px solid red;
            height:230px;
        }

    </style>

    <div class="footer">
        <p>footer</p>
    </div>

    <!--[if lte IE 6]>
        <script src="/js/dd_belatedpng.js" type="text/javascript">开发者_如何学编程;</script>
        <script type="text/javascript">
            DD_belatedPNG.fix('.footer');
        </script>
    <![endif]-->


    </body>
</html>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜