Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 键盘不会在iPhone搜索中消失_Html_Ios_Css_Angularjs_Keyboard - Fatal编程技术网

Html 键盘不会在iPhone搜索中消失

Html 键盘不会在iPhone搜索中消失,html,ios,css,angularjs,keyboard,Html,Ios,Css,Angularjs,Keyboard,我刚刚在我的网站上安装了一个搜索栏,我发现了一个奇怪的错误:当你按下iPhone上的搜索按钮时,键盘不会关闭,但搜索是有效的!换句话说,如果你点击文本框,输入你要搜索的内容,然后按下iPhone键盘上的搜索按钮,搜索结果就会出现,但键盘仍然挡着。很明显,表单已经提交,但iOS似乎没有让你看到结果 这是我的密码: <form style="margin-bottom: 20px; text-align: center" class="visible-xs" ng-submit="update

我刚刚在我的网站上安装了一个搜索栏,我发现了一个奇怪的错误:当你按下iPhone上的搜索按钮时,键盘不会关闭,但搜索是有效的!换句话说,如果你点击文本框,输入你要搜索的内容,然后按下iPhone键盘上的搜索按钮,搜索结果就会出现,但键盘仍然挡着。很明显,表单已经提交,但iOS似乎没有让你看到结果

这是我的密码:

<form style="margin-bottom: 20px; text-align: center" class="visible-xs" ng-submit="updateEvents()">
  <div>
    <input type="text" id="textSearch" class="form-control" ng-model="search_text" placeholder="Search Here" style="margin-bottom: 5px">
  </div>
  <button class="btn btn-primary" type="submit">
    <i class="fa fa-search"></i> Search
  </button>
</form>
您还可以在上看到该网站的实况


另外:请注意,我在这个应用程序中使用angular。

根据我的iOS编程书,您需要辞职第一响应者:

[textField resignFirstResponder];

我猜你会用textfielddidediting这样的方法调用它。或者从哪里开始搜索。

哈哈,这就是objective-c中的搜索方式,但我是用css/html提问的。谢谢。对不起,我没办法。