开发者

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

开发者 https://www.devze.com 2022-12-28 06:04 出处:网络
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.

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

精彩评论

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