Jquery 增加jqgrid多选td宽度

Jquery 增加jqgrid多选td宽度,jquery,jqgrid,Jquery,Jqgrid,如何增加jqgrid multiselect复选框的宽度 你检查过这个链接了吗。根据这一点,无法在所有浏览器中设置复选框的大小 但您可以更改webkit浏览器中硬编码的复选框的宽度,如下所示: // Put this in jqGrid init to modify checkbox cell width gridComplete: function() { $("#yourid_cb").css("width","50px"); $("#yourid tbody tr")

如何增加jqgrid multiselect复选框的宽度

你检查过这个链接了吗。根据这一点,无法在所有浏览器中设置复选框的大小

但您可以更改webkit浏览器中硬编码的复选框的宽度,如下所示:

 // Put this in jqGrid init to modify checkbox cell width
 gridComplete: function() {

    $("#yourid_cb").css("width","50px");
    $("#yourid tbody tr").children().first("td").css("width","50px");
 }

// override checkbox css 
   #yourid input[type="checkbox"] {    
     -webkit-transform: scale(2.0, 2.0)   
}

演示:

您是否已检查此链接。根据这一点,无法在所有浏览器中设置复选框的大小

但您可以更改webkit浏览器中硬编码的复选框的宽度,如下所示:

 // Put this in jqGrid init to modify checkbox cell width
 gridComplete: function() {

    $("#yourid_cb").css("width","50px");
    $("#yourid tbody tr").children().first("td").css("width","50px");
 }

// override checkbox css 
   #yourid input[type="checkbox"] {    
     -webkit-transform: scale(2.0, 2.0)   
}

演示:

将属性multiselectWidth用作:

            multiselect: true,
            multiselectWidth: 150,

将特性multiselectWidth用作:

            multiselect: true,
            multiselectWidth: 150,