您可以在 WebBrowser 中声明 InputScope 吗?

问题描述:

我知道 TextBox 中的 InputScope 属性,但是可以在 WebBrowser 中使用吗?我实际上只是想摆脱自动建议,如果可能的话,无需更改 InputScope.

I'm aware of the property InputScope in a TextBox, but is it possible to use in a WebBrowser? I actually just want to get rid of the autosuggestions, if that is possible without changing the InputScope.

您必须为 HTML 中的每个输入设置输入范围.这样,每种输入类型的特定键盘都会显示出来.

You have to set the input scope for each input in the HTML. This way the specific keyboard for each input type will be displayed.

请参阅HTML5 输入类型.

您可以访问此页面来试用.

请注意,这仅适用于 Windows Phone 8 (IE10),因为 Windows Phone 7 中的浏览器 IE9 未实现它.

Note that this will only work with Windows Phone 8 (IE10), because IE9, the browser in Windows Phone 7, doesn't implement it.