2014-09-20 106 views

回答

0

在使用它们之前,您需要在joy define中定义位置模式,如下所示。

$(document).foundation({ 
    joyride : { 
    tip_location: 'top', 
    nub_position: 'auto', 
    tip_location_patterns : { 
    top: ['top'], 
    bottom: [], // bottom should not need to be repositioned 
    left: ['right', 'top', 'bottom'], 
    right: ['left', 'top', 'bottom'] 
}, 
} 
}); 

为了更加清晰,请访问http://codepen.io/Parteek/pen/ohHlc

+0

它将尖端移动到div的顶部。我想要他们旁边的divs(无论是右或左)。 – chetang 2014-09-20 10:05:41