HTML5 Geolocation Altitude
问题 I was playing with the html5 geolocation api for a project I'm working on. Latitude and longitude are reported correctly but altitude is always returned as 'null'. Testing device is Nexus 4 and 5, has anybody else had similar problems with this api? 回答1: Absolutely! it appears to be an issue that may be browser specific. Since I develop on both IPhones and Android I make sure to try my HTML5 apps on the default browsers (Safari and Android's webBrowser). My new IPhone 5S picks up the altitude