0

我有一个自动完成输入,但是当我提示某些内容时,图例显示

“......结果可用”

显示在输入附近,因此页面看起来很糟糕:(。对于我可以设置的任意数量的像素,如何将此图例向右移动?

这是一段代码:

$("#myAutocomplete").autocomplete
    ({ 
        source: res,
        position: {  my: "left+250 top" },
        minLength: 1
    });

文档似乎没有答案:(

这是 res 对象(例如):

var res = [
            "ActionScript",
            "AppleScript",
            "Asp",
            "BASIC",
            "C",
            "C++",
            "Clojure",
            "COBOL",
            "ColdFusion",
            "Erlang",
            "Fortran",
            "Groovy",
            "Haskell",
            "Java",
            "JavaScript",
            "Lisp",
            "Perl",
            "PHP",
            "Python",
            "Ruby",
            "Scala",
            "Scheme"
        ];
4

1 回答 1

1

添加这个

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
于 2012-12-28T08:58:21.580 回答