在iPad Safari浏览器中,当我将焦点从文本框更改为下拉列表时,键盘仍然存在...是否有某种方式(可能使用Javascript)当用户从文本框中模糊时我可以隐藏键盘?
间接地说,我正在寻找相当的(但在Mobile Safari中)
[tempTextField resignFirstResponder];
Run Code Online (Sandbox Code Playgroud) 如何在移动浏览器(ios和android)中修复元素位置?元素仍然使用以下代码滚动ios <5和android <4
<html>
<head>
<style>
.fixed{
position:fixed;
top:0;
left:0;
}
</style>
</head>
<body>
<div class="fixed">
Hi I m Position Fixed
</div>
<div>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample text<br/>
sample …Run Code Online (Sandbox Code Playgroud) 我的应用程序中有一个带有jQuery模糊事件处理程序的html输入文本元素:
$('#textBox').blur(function () { console.log('blur'); })
Run Code Online (Sandbox Code Playgroud)
当我单击文本框中的页面区域时,桌面浏览器会触发此事件,但iPad Safari不会.键盘和光标都不会消失.有没有办法"启用"模糊事件?