开发者

jQuery, qTip: tooltips font-size: always the same

I'm using qTip jquery-plugin for my tooltips.

I cannot change the font-size of the tooltips. This is the code.. any number 2..4..8 produces the same results.

$('.option img[title]').qtip({  
    style: { name: 'light', border: {width: 0}, title: { 开发者_C百科'font-size': 2 } },        
        position: {
            corner: {
                target: 'topMiddle',
                tooltip: 'bottomMiddle'
                }
        }             
    });

thanks


I solved with CSS:

.qtip-content {
    font-size:12px;
}


You need to add the "px" and you can add any css property to your tool tip but you have to put it in quotation marks.

so try this (it worked for me)

'font-size' : '12px'


Try removing the quotes around font-size

style: { name: 'light', border: {width: 0}, title: { font-size: 2 } }
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜