UIWebView不会隐藏键盘(UIWebView won't hide keyboard)
我需要在页面开始加载时隐藏键盘。 我已经尝试了所有常用的建议方法,例如这里
以下方法对键盘没有影响
[webView endEditing:YES]; [webView stringByEvaluatingJavaScriptFromString:@"document.activeElement.blur();"]; [webView stringByEvaluatingJavaScriptFromString:@"window.blur();"];
我在
-webView:shouldStartLoadWithRequest:navigationType:
调用它们-webView:shouldStartLoadWithRequest:navigationType:
我究竟做错了什么? 有什么建议?
I need to hide the keyboard as soon as a page starts loading. I've tried all commonly suggested approaches discussed e.g. here
Following approaches have no effect on the keyboard
[webView endEditing:YES]; [webView stringByEvaluatingJavaScriptFromString:@"document.activeElement.blur();"]; [webView stringByEvaluatingJavaScriptFromString:@"window.blur();"];
I invoke them in
-webView:shouldStartLoadWithRequest:navigationType:
What am I doing wrong? Any suggestions?
原文:
最满意答案
很难直观地想象你想要什么,但也许你应该使用块元素而不是表格。 表格仅应用于表格数据。 如果没有要跨越的行,
rowspan
属性将无法正常运行。<table> <tr> <td rowspan="2">ONE</td> <td>TWO</td> </tr> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> </tr> </table>
It's difficult to visualize exactly what you want, but perhaps you should be using block elements rather than a table. A table should only be used for tabular data. The
rowspan
attribute won't function correctly if there aren't any rows to span.<table> <tr> <td rowspan="2">ONE</td> <td>TWO</td> </tr> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> </tr> </table>
相关问答
更多-
根据我在链接中提到的http://andrewjwelch.com/code/xslt/table/table-normalization.html ,您可以使用:
rowSpan隐藏行(rowSpan hides rows)[2022-02-04]
您可以将高度属性添加到该行中:1 2 3 4