css中正确书写background-position:x y; 坐标之间有空格 然而在写js的时候如果粗心会忘记第一个‘px’后面加个空格 正确js书写应该是backgroundposi:x+‘px ’+y+‘px’