/* 模态框左移一点 */ $('#clickname').css({ width:'auto', 'margin-left':function(){ return-($(this).width()/4); } });