ctrl.css('backgroundPosition' 返回值不一样,
原来是:-75px 0px
现在是:left 75px top 0px
// chrome 33 返回的是 left 0px top 0px
var backgroundPosition = ctrl.css('backgroundPosition'); // "-75px 0px"
//2013/12/11
backgroundPosition = backgroundPosition.replace('left ', '');
backgroundPosition = backgroundPosition.replace('top ', '');
if (backgroundPosition) { //在firefox和chrome中,第一次运行时,会取不到backgroundPosition,可能和图片加载有关
var pos = backgroundPosition.split(' ');
pos[1] = backGroundPositionY; //替换Y方向
backgroundPosition = pos.join(' ');
ctrl.css('backgroundPosition', backgroundPosition);
}