Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript dd_belatedpng.js:在IE6虚拟机上失败_Javascript_Css - Fatal编程技术网

Javascript dd_belatedpng.js:在IE6虚拟机上失败

Javascript dd_belatedpng.js:在IE6虚拟机上失败,javascript,css,Javascript,Css,我有一个透明的png(test.png),我正在尝试使用dd_belatedpng.js,所以它显示在IE6中。它的版本是0.0.8a 无论我做什么,背景图像都不会出现。我已经安装了httpwatch,看到它,我知道它正在加载。有什么想法吗 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.or

我有一个透明的png(test.png),我正在尝试使用dd_belatedpng.js,所以它显示在IE6中。它的版本是0.0.8a

无论我做什么,背景图像都不会出现。我已经安装了httpwatch,看到它,我知道它正在加载。有什么想法吗

<!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>

.页脚{
背景图片:url(/images/test.png);
宽度:900px;
边框:1px纯红;
高度:230像素;
}
页脚


如果您使用的是html doctype,为什么在
html
标记上有XHTML属性?不确定是否有区别,但您的图像URL应该在引号中?我正在Mac上开发,使用VirtualBox运行XP/IE6设备。我刚刚在一台运行IETester/IE6的PC上尝试了相同的页面,效果很好。我猜这是一个VirtualBox问题?已解决-XP的VirtualBox映像已禁用/丢失VML-因此png修复程序将永远无法工作。