jqueryUI自动填充建议错误地放在Chrome中

时间:2010-09-03 18:47:34

标签: html css jquery-ui jquery-autocomplete

我正在编辑整个帖子以显示问题:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <link type="text/css" href="./jQuery/jQueryUI/css/ui-darkness/jquery-ui-1.8.4.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="./jQuery/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="./jQuery/jQueryUI/js/jquery-ui-1.8.4.custom.min.js"></script>

    <script type="text/javascript">

    $(function() {
        var availableTags = ["ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme"];
        $("#tags").autocomplete({
            source: availableTags
        });
    });

    </script>
</head>
<body>
<br/><br/><br/>
    <div id="LoginLinkSearch" class="ui-widget">
        <label for="tags">Tags: </label>
        <input id="tags" />
    </div>
<br/><br/><br/>
</body>
</html>

alt text

我在其他浏览器中遇到了问题,但我认为这是因为我使用了一个错误的CSS文件用于jqueryUI。

1 个答案:

答案 0 :(得分:5)

看起来你正在使用缩放(我只能在这种情况下看到类似的东西),试试ctrl + 0