我已经为我正在创建的插件设置了joyride.js,这样我就可以在使用插件之前向用户介绍一些基本的设置步骤。我有正确的运行/运作,但有一件事,我注意到,‘巡回赛’是大约200 be左右,比他们应该是。
这可能是因为我的元素有空隙或空白处吗?是否有办法调整这一点,使其出现在正确的元素旁边?我已经尝试过将工具提示设置为上面、左边和右边,它们都比需要的px低大约200。
驾驶设置如下:
jQuery(window).load(function() {
jQuery("#TourList").joyride({
autoStart : true,
'tipLocation': 'right', // 'top' or 'bottom' in relation to parent
'nubPosition': 'auto',
// enable cookies to only run the joyride tutorial one time
'cookieMonster': false, // true/false for whether cookies are used
'cookieName': 'JoyRide', // choose your own cookie name
'cookieDomain': false
});
});发布于 2013-12-20 18:33:28
最后,我在喜悦中改变了css -2.1.css
.joyride-tip-guide {
position: absolute;
background: #000;
background: rgba(0,0,0,0.8);
display: none;
color: #fff;
width: 300px;
z-index: 101;
top: 0; /* keeps the page from scrolling when calculating position */
left: 0;
font-family: "HelveticaNeue", "Helvetica Neue", "Helvetica", Helvetica, Arial, Lucida, sans-serif;
font-weight: normal;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
margin-top:-55px;
}https://stackoverflow.com/questions/20709107
复制相似问题