Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使Jquery UI按钮具有32x32 px非默认图标?_Jquery_Css_Jquery Ui - Fatal编程技术网

如何使Jquery UI按钮具有32x32 px非默认图标?

如何使Jquery UI按钮具有32x32 px非默认图标?,jquery,css,jquery-ui,Jquery,Css,Jquery Ui,我想在Jquery按钮中使用我自己的32 x 32 px图标

我想在Jquery按钮中使用我自己的32 x 32 px图标<这可能吗? 我可以将图标的背景大小强制设置为16x16,但这样做太小。

.ui-icon-custom-risk { background-size:16px 16px; background-image: url(icons/Current_Risk.png) !important; }
.ui-icon-custom-matrix { background-size:32px 32px;; background-image: url(icons/Current_matrix.png) !important; } 
$('#btn1').button({
   label: 'Risk',
   icons: {primary: 'ui-icon-custom-risk'}
});
$('#btn2').button({
    text: false,
    icons: {
         primary: "ui-icon-custom-matrix"  
    }
});

双重的32px之后?是这样吗?