输入字段上的自动对焦属性在IE 11中不起作用 [英] autofocus attribute on input field not working in IE 11
问题描述
我似乎无法获得在IE 11这个工作,我创建了一个非常简单的jsfiddle: HTTP:/ /jsfiddle.net/0qwbr7gh/
将以下输入框:
<输入类型= 文字自动对焦/>
在chrome中,它按预期工作,输入字段专注于加载。在IE 11中它没有。微软表示,他们的网站支持它,并举例说明。
以及它说,它支持:
http://caniuse.com/#feat =自动对焦
我错过了什么?
IE11不支持自动对焦(尽管在caniuse中)。
您可以查看如何在Internet Explorer中输入自动对焦?
I can't seem to get this working in IE 11, I've created an extremely simple jsfiddle: http://jsfiddle.net/0qwbr7gh/ With the following input box:
<input type="text" autofocus/>
In chrome it works as expected, the input field has focus on load. In IE 11 it doesn't.
Microsoft say it's supported on their website along with an example. And also it says it's supported on: http://caniuse.com/#feat=autofocus
What have I missed?
IE11 doesn`t support autofocus (despite is in caniuse). You can check How to make input autofocus in internet explorer?
这篇关于输入字段上的自动对焦属性在IE 11中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!