增加jqgrid multiselect td宽度
答
您是否检查了此链接Checkbox size in HTML/CSS。据此,无法在所有浏览器中设置复选框的大小。
但您可能能够改变硬编码像这样的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,