简体   繁体   English

iPhone / Mobile Safari:获得可靠的视口高度

[英]iPhone/Mobile Safari: Getting a reliable viewport height

Is there a way to get a reliable viewport height value from mobile Safari? 有没有办法从移动Safari获得可靠的视口高度值? I've been struggling for days now and I know that I am not the only one with this problem. 我已经挣扎了好几天了,我知道我不是唯一有这个问题的人。
Even toolkits like http://responsejs.com didn't help me. 甚至像http://responsejs.com这样的工具包都没有帮助我。 How to Sencha Touch or Kendo UI get the screen height, does somebody know that? 如何让Sencha Touch或Kendo UI获得屏幕高度,有人知道吗? Is that reliable? 这可靠吗?

我总是使用这个: http//docs.sencha.com/touch/2-1/#!/ api / Ext.viewport.Default-method-getWindowHeight

Ext.Viewport.getWindowHeight(); 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM