4

我正在为我的工具提示使用 qTip jquery-plugin。

我无法更改工具提示的字体大小。这是代码.. 任何数字 2..4..8 都会产生相同的结果。

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

谢谢

4

3 回答 3

10

我用 CSS 解决了:

.qtip-content {
    font-size:12px;
}
于 2010-04-28T14:41:19.823 回答
0

您需要添加“ px ”,您可以将任何添加css property到您的工具提示中,但您必须将其放在引号中。

所以试试这个(它对我有用)

'font-size' : '12px'
于 2010-06-25T04:36:27.420 回答
-2

尝试删除字体大小周围的引号

style: { name: 'light', border: {width: 0}, title: { font-size: 2 } }
于 2010-04-28T12:50:16.967 回答