如何使Jquery UI按钮具有32x32 px非默认图标?
我想在Jquery按钮中使用我自己的32 x 32 px图标<这可能吗? 我可以将图标的背景大小强制设置为16x16,但这样做太小。如何使Jquery UI按钮具有32x32 px非默认图标?,jquery,css,jquery-ui,Jquery,Css,Jquery Ui,我想在Jquery按钮中使用我自己的32 x 32 px图标
.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之后?是这样吗?