jquery raty star size属性不起作用

rox*_*an3 5 html css size jquery

我正在尝试使用jquery.raty.js和jquery.raty.min.js,但我想让星星变大,但它不起作用.我在jquery.raty.js和脚本中的这个函数中更改了大小.

我在这里有这个插件:

http://wbotelhos.com/raty

$(document).ready(function () {
    $('.star1').raty({
        cancel: true,
        score: 0,
        half: true,
        size: 22,
        path: 'img',
        click: function (score1, evt) {
            $('input.valor').val(score1);
        }
    });
});
Run Code Online (Sandbox Code Playgroud)

我想要22或24像素的恒星,但它的大小总是16.

谢谢

cro*_*dor 3

我遇到了同样的问题,对我来说,这是浏览器的缓存内存......直到我将这个属性“single:true”放入函数中,它才起作用。

$('#star').raty({
  cancel   : true,
  cancelOff: 'cancel-off-big.png',
  cancelOn : 'cancel-on-big.png',
  half     : true,
 ->>>>> single   : true,
  size     : 24,
  starHalf : 'star-half-big.png',
  starOff  : 'star-off-big.png',
  starOn   : 'star-on-big.png'
});
Run Code Online (Sandbox Code Playgroud)

然后我就可以看到其中一个大尺寸的了。然后我想也许这是缓存......确实如此。

尝试一下,也许是解决方案。