小编Nei*_*ald的帖子

Internet Explorer 8中的JQuery问题

以下代码在Firefox中运行良好,但在IE中则不行.我已尝试对标题和脚本调用字符串进行各种调整,但是没有什么能使IE运行脚本.IE中也关闭了所有安全性.

以下代码有什么问题吗?

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Smartube</title>
    <link href="css/default.css" rel="stylesheet" type="text/css" />
    <script src="jquery.js" type="text/javascript"></script>
    <script src="tubeutil.js" type="text/javascript"></script>
    <script src="init.js" type="text/javascript"></script>
    <script type="text/javascript">
    function formfocus() {
    document.getElementById('1').focus();
    }
    window.onload = formfocus;
    </script>
    </head>

    <body>



<div class="wrapper">
    <img class="displayed" src="gfx/sb.png">
    <form class="blocks" action="" method="get">
        <p><input type="text"  class="search" id="1" /></p>
        <p><input type="Submit" class="btn" value="" /></p>
        <ul class="reset autocomplete"></ul>
    </form>

    <ul class="reset videos"></ul>

</div>
    </body>
    </html>
Run Code Online (Sandbox Code Playgroud)

html javascript jquery internet-explorer-8

4
推荐指数
1
解决办法
716
查看次数

标签 统计

html ×1

internet-explorer-8 ×1

javascript ×1

jquery ×1