jQuery的自动完成:移动列表中的位置? [英] jQuery autocomplete : move list position?

查看:231
本文介绍了jQuery的自动完成:移动列表中的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能对我来说,移动下拉列表中向下4PX?

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

我在的.ui-自动完成试了好几种款式{}

包括:

的margin-top:4PX; 结果
顶:4PX

但它似乎并不奏效?

推荐答案

这是什么 偏移属性位置选项是:

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

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

这篇关于jQuery的自动完成:移动列表中的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆