在ie6下面如果一个元素是隐藏的那么将不能调用它的foucs方法~

1
2
3
4
5
6
7
8
<html>
	<body>
		<input type="text" id="test" style="display:none;"/>
	</body>
</html>
<script>
	document.getElementById('test').focus();
</script>
Copy Code | Run Code