0
Fiddle ExamplejQuery的scrollTop的使用jQueryUI的手风琴
奇怪的行为有商店在高度受限的DIV中的手风琴控制列表,我试图完全滚动活动面板进入视野。
$("#stores").accordion({
heightStyle: "fixed",
icons: false,
activate: function (event,ui) {
$("#stores").scrollTop($(ui.newHeader).position().top-5);
}
});
这应该带来新激活的头和它附带的面板与5px的保证金父div的顶部,但它不...已快把我逼疯了几天
你真棒!那就是诀窍。 – 2013-05-03 10:34:53