質問

Jquery自動補完の提案リストのフォントは非常に大きい小さいのようなコマンドプロンプトにテキストボックスにフォントです。を制限する方法に小さなフォントの提案です。は下記をご参照ください画面でコード:

<!DOCTYPE>
<html>
<head>
<title>Auto Complete in JSP Java</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<STYLE TYPE="text/css" media="all">
.ui-autocomplete {
    position: absolute;
    cursor: default;
    height: 200px;
    overflow-y: scroll;
    overflow-x: hidden;}
</STYLE>
<script>
$(function() {
$("#names").autocomplete({
    source: function(request, response) {
    $.ajax({
    url: "searchName.jsp",
    type: "POST",
    dataType: "json",
    data: { name: request.term},
    success: function( data, textStatus, jqXHR) {
                    var items = data;
                    response(items);
                },
    error: function (error) {
       alert('error: ' + error);
    }
    });
    },
    minLength: 3
    });
});
</script>
</head>

<body>
<input type="text" name="name" id="names" /> 
</body>
</html>
役に立ちましたか?

解決

で定義されています:

.ui-widget {
  font-family: Verdana,Arial,sans-serif;
  font-size: 10px;
}

しかし、あなたはそれの前に何か例でした

.ui-autocomplete.ui-widget {
  font-family: Verdana,Arial,sans-serif;
  font-size: 10px;
}

他のヒント

例えば:

$('.ui-autocomplete-input').css('fontSize', '10px');

情報スタイリングのオートコンプリートウィジェットで、できるだけ早く送ってくださ

Theming自動補完のjQuery

ul マークアップの ui-autocomplete-input の結果を発生します。をターゲット ul.ui-autocomplete.ui-menu きで作られています。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top