开发者

Cluetip open at the same spot

Hallo

I am using cluetip and it works perfectly. but I want all the tip to open on the exact samt spot on the site.

my clue tip looks like this atm

$('a.btn').cluetip(
   {
     cluetipClass: 'jtip',
    local:true,
    sticky: true,
    dropShadow: false,
    hoverIntent: true,
    closePosition: 'title',
    sticky: true,
    leftOffset: 25, 
    closeText: '<img src="/images/cluetip/cross.png" alt="" />',
    cursor: 'pointer',
   activ开发者_开发百科ation: 'click',
   }
 );


The whole reason of cluetip (besides nice styling) is to have the tooltips pop up relative to the link, so I don't know why you would want the tooltips to open always at the same spot on your site.

But you can achieve this using basic CSS styling for your cluetip class jtip:

.jtip {
 position: absolute !important;
 left: 20px;
 right: 20px;
}

Of course it would be cleaner if you would rewrite the cluetip plugin to not use relative positioning (e.g. see leftOffset), but absolute positioning.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜