jquery easyUI datagrid 宽度设置百分比问题

columns : [[
						{
							title : 'id',
							field : 'id',
							width : getWidth(0.05),
							align :'center',
						}
            ]]

//取百分比方法
function getWidth(percent)  
{  
    return document.body.clientWidth * percent ; 
} 

猜你喜欢

转载自my.oschina.net/u/3500033/blog/1618996