Implement offsetTop and offsetLeft style both Android and iOS.