1

今天,我找到了这个链接。所以我在 Windows XP 的 IE 8 上安装了 Google Chrome Frame 插件并启用了它。

http://davidwalsh.name/chrome-frame

我正在尝试使用 HTML 5 API 在 Internet Explorer 8 中进行多文件上传。我在我的页面中放置了元标记,但它不支持拖放。它没有用。

据我了解,该插件允许 IE 使用 Google Chrome 的 HTML 5 JavaScript 引擎。这个 HTML 5 File API 是否与这个 JavaScript 引擎相关,或者它们是完全不同的东西?

代码:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="chrome=1" />

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Plupload Example</title>
    <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/extjs-4.1.1-gpl/resources/css/ext-all.css" />
    <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/extjs-4.1.1-gpl/examples/shared/example.css" />
    <style>
        #dragload
        {
            width: 300px;
            height: 300px;
            background:#BBBBBB;
            padding: 30px;
            text-align: center;
            margin: 0 0 20px 0;
        }
    </style>
</head>
<body>
    <h1>Plupload Example</h1>
    <p>Simple Upload Button</p>
    <p>The js is not minified so it is readable. See <a href="upload.js">upload.js</a>.</p>
    <script type="text/javascript" src="http://extjs.cachefly.net/extjs-4.1.1-gpl/bootstrap.js"></script>

    <div id="dragload"><h1>Drag files here, or use the button below</h1></div>

    <script type="text/javascript" src="../../ux/upload/plupload/js/plupload.js"></script>
    <script type="text/javascript" src="../../ux/upload/plupload/js/plupload.html4.js"></script>
    <script type="text/javascript" src="../../ux/upload/plupload/js/plupload.html5.js"></script>
    <script type="text/javascript" src="../../ux/upload/plupload/js/plupload.flash.js"></script>
    <script type="text/javascript" src="../../ux/upload/plupload/js/plupload.silverlight.js"></script>

    <script type="text/javascript" src="upload.js"></script>
</body>
</html>
4

0 回答 0