我似乎无法在 IE 11 中使用它,我创建了一个非常简单的 jsfiddle:http://jsfiddle.net/0qwbr7gh/ http://jsfiddle.net/0qwbr7gh/有如下输入框:
<input type="text" autofocus/>
在 Chrome 中,它按预期工作,输入字段重点关注负载。在 IE 11 中则不然。
微软表示其网站上支持该功能并提供了示例。
它还说它支持:http://caniuse.com/#feat=autofocus http://caniuse.com/#feat=autofocus
我错过了什么?
IE11不支持自动对焦(尽管在caniuse中有)。
你可以检查如何在 Internet Explorer 中使输入自动聚焦? https://stackoverflow.com/questions/8280988/how-to-make-input-autofocus-in-internet-explorer
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)