Jquery 如何处理他们跳出(而键盘打开)在查询手机?
我面临的一个问题是,当用户点击文本字段时,我的密码会上升?我使用的是QueryMobile 1.3。 这也是我的问题。 解决方案 我使用这个解决方案,但没有得到正确的结果。 这是我的手机1.3JS 我应该在哪一行进行更改以使其正常工作Jquery 如何处理他们跳出(而键盘打开)在查询手机?,jquery,jquery-mobile,Jquery,Jquery Mobile,我面临的一个问题是,当用户点击文本字段时,我的密码会上升?我使用的是QueryMobile 1.3。 这也是我的问题。 解决方案 我使用这个解决方案,但没有得到正确的结果。 这是我的手机1.3JS 我应该在哪一行进行更改以使其正常工作 (function(root, doc, factory) { if (typeof define === "function" && define.amd) { // AMD. Register as an anony
(function(root, doc, factory) {
if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module.
define(["jquery"], function($) {
factory($, root, doc);
return $.mobile;
});
} else {
// Browser globals
factory(root.jQuery, root, doc);
}
}(this, document, function(jQuery, window, document, undefined) {
(function($) {
$.mobile = {};
}(jQuery));
(function($, window, undefined) {
var nsNormalizeDict = {};
这是你的答案。。
不知道为什么,但你的小提琴太乱了,它只在预览部分显示了很多代码。它是完整的js.1.3.1.js…Jquery mobile js.1.3.1给出了1.3.0的答案。但我需要1.3.1你可以在ipad或平板电脑上检查这个问题。它是hole 1.3 js..:jquerymobile 1.3
1) Go into jquery.mobile-1.x.x.js
2) Find $.mobile = $.extend() and add the following attributes:
last_width: null,
last_height: null,
3) Modify getScreenHeight to work as follows:
getScreenHeight: function() {
// Native innerHeight returns more accurate value for this across platforms,
// jQuery version is here as a normalized fallback for platforms like Symbian
if (this.last_width == null || this.last_height == null || this.last_width != $( window ).width())
{
this.last_height = window.innerHeight || $( window ).height();
this.last_width = $(window).width();
}
return this.last_height;
}