jQuery autocomplete : move list position?

后端 未结 4 1680
梦谈多话
梦谈多话 2021-01-18 04:52

I am wondering if it is possible for me to move the dropdown list down 4px?

I have tried several styles in .ui-autocomplete {}.

including:

4条回答
  •  粉色の甜心
    2021-01-18 05:54

    This is what the offset property of the position option is for:

    $('#myField').autocomplete({
        source: …,
        position: {
            offset: '0 4' // Shift 0px left, 4px down.
        }
    });
    

提交回复
热议问题