resolve resolution problem on different browser